提交 d6938d1b 编写于 作者: D David Howells 提交者: Linus Torvalds

[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: NDavid Howells <dhowells@redhat.com>
Signed-off-by: NNathan Scott <nathans@sgi.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 726c3342
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册