diff options
author | Christoph Hellwig <hch@lst.de> | 2010-07-07 12:53:11 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2010-08-09 16:48:42 -0400 |
commit | ebabe9a9001af0af56c0c2780ca1576246e7a74b (patch) | |
tree | b263299f575c650b6e9d95c7c4bdeef958af2fc9 /include/linux/fs.h | |
parent | 336fb3b97b78edc65bae0b223b83bf676cfe29e2 (diff) |
pass a struct path to vfs_statfs
We'll need the path to implement the flags field for statvfs support.
We do have it available in all callers except:
- ecryptfs_statfs. This one doesn't actually need vfs_statfs but just
needs to do a caller to the lower filesystem statfs method.
- sys_ustat. Add a non-exported statfs_by_dentry helper for it which
doesn't won't be able to fill out the flags field later on.
In addition rename the helpers for statfs vs fstatfs to do_*statfs instead
of the misleading vfs prefix.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index dec9ac598859..9bedf4219f83 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -1813,7 +1813,8 @@ extern struct vfsmount *collect_mounts(struct path *); | |||
1813 | extern void drop_collected_mounts(struct vfsmount *); | 1813 | extern void drop_collected_mounts(struct vfsmount *); |
1814 | extern int iterate_mounts(int (*)(struct vfsmount *, void *), void *, | 1814 | extern int iterate_mounts(int (*)(struct vfsmount *, void *), void *, |
1815 | struct vfsmount *); | 1815 | struct vfsmount *); |
1816 | extern int vfs_statfs(struct dentry *, struct kstatfs *); | 1816 | extern int vfs_statfs(struct path *, struct kstatfs *); |
1817 | extern int statfs_by_dentry(struct dentry *, struct kstatfs *); | ||
1817 | extern int freeze_super(struct super_block *super); | 1818 | extern int freeze_super(struct super_block *super); |
1818 | extern int thaw_super(struct super_block *super); | 1819 | extern int thaw_super(struct super_block *super); |
1819 | 1820 | ||