diff options
author | David Howells <dhowells@redhat.com> | 2006-06-23 05:02:59 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-23 10:42:45 -0400 |
commit | d6938d1b2768fbf94d1091207d334ef7df786e5a (patch) | |
tree | a0b7ea4375ef9802f4fbd7eef2f6b5f960f77079 | |
parent | 726c334223180e3c0197cc980a432681370d4baf (diff) |
[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>
-rw-r--r-- | fs/xfs/linux-2.6/xfs_super.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/linux-2.6/xfs_super.c b/fs/xfs/linux-2.6/xfs_super.c index 4fb0fc65af34..9bdef9d51900 100644 --- a/fs/xfs/linux-2.6/xfs_super.c +++ b/fs/xfs/linux-2.6/xfs_super.c | |||
@@ -687,7 +687,8 @@ xfs_fs_statfs( | |||
687 | struct dentry *dentry, | 687 | struct dentry *dentry, |
688 | struct kstatfs *statp) | 688 | struct kstatfs *statp) |
689 | { | 689 | { |
690 | return -bhv_vfs_statvfs(vfs_from_sb(dentry->d_sb), statp, NULL); | 690 | return -bhv_vfs_statvfs(vfs_from_sb(dentry->d_sb), statp, |
691 | vn_from_inode(dentry->d_inode)); | ||
691 | } | 692 | } |
692 | 693 | ||
693 | STATIC int | 694 | STATIC int |