mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
[PATCH] XFS: Use the dentry passed to statfs() to limit the scope of the results
Enable XFS to limit the statfs() results to the project quota covering the dentry used as a base for call. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Nathan Scott <nathans@sgi.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
726c334223
commit
d6938d1b27
1 changed files with 2 additions and 1 deletions
|
@ -687,7 +687,8 @@ xfs_fs_statfs(
|
|||
struct dentry *dentry,
|
||||
struct kstatfs *statp)
|
||||
{
|
||||
return -bhv_vfs_statvfs(vfs_from_sb(dentry->d_sb), statp, NULL);
|
||||
return -bhv_vfs_statvfs(vfs_from_sb(dentry->d_sb), statp,
|
||||
vn_from_inode(dentry->d_inode));
|
||||
}
|
||||
|
||||
STATIC int
|
||||
|
|
Loading…
Reference in a new issue