Skip to content

Commit

Permalink
[PATCH] XFS: Use the dentry passed to statfs() to limit the scope of …
Browse files Browse the repository at this point in the history
…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 <[email protected]>
Signed-off-by: Nathan Scott <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
dhowells authored and Linus Torvalds committed Jun 23, 2006
1 parent 726c334 commit d6938d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/xfs/linux-2.6/xfs_super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d6938d1

Please sign in to comment.