diff options
Diffstat (limited to 'fs/libfs.c')
-rw-r--r-- | fs/libfs.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/libfs.c b/fs/libfs.c index 28d6f35feed6..1dfaf8f606c0 100644 --- a/fs/libfs.c +++ b/fs/libfs.c | |||
@@ -20,10 +20,10 @@ | |||
20 | 20 | ||
21 | #include "internal.h" | 21 | #include "internal.h" |
22 | 22 | ||
23 | int simple_getattr(struct vfsmount *mnt, struct dentry *dentry, | 23 | int simple_getattr(const struct path *path, struct kstat *stat, |
24 | struct kstat *stat) | 24 | u32 request_mask, unsigned int query_flags) |
25 | { | 25 | { |
26 | struct inode *inode = d_inode(dentry); | 26 | struct inode *inode = d_inode(path->dentry); |
27 | generic_fillattr(inode, stat); | 27 | generic_fillattr(inode, stat); |
28 | stat->blocks = inode->i_mapping->nrpages << (PAGE_SHIFT - 9); | 28 | stat->blocks = inode->i_mapping->nrpages << (PAGE_SHIFT - 9); |
29 | return 0; | 29 | return 0; |
@@ -1143,10 +1143,10 @@ static struct dentry *empty_dir_lookup(struct inode *dir, struct dentry *dentry, | |||
1143 | return ERR_PTR(-ENOENT); | 1143 | return ERR_PTR(-ENOENT); |
1144 | } | 1144 | } |
1145 | 1145 | ||
1146 | static int empty_dir_getattr(struct vfsmount *mnt, struct dentry *dentry, | 1146 | static int empty_dir_getattr(const struct path *path, struct kstat *stat, |
1147 | struct kstat *stat) | 1147 | u32 request_mask, unsigned int query_flags) |
1148 | { | 1148 | { |
1149 | struct inode *inode = d_inode(dentry); | 1149 | struct inode *inode = d_inode(path->dentry); |
1150 | generic_fillattr(inode, stat); | 1150 | generic_fillattr(inode, stat); |
1151 | return 0; | 1151 | return 0; |
1152 | } | 1152 | } |