aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cramfs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cramfs/inode.c')
-rw-r--r--fs/cramfs/inode.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/cramfs/inode.c b/fs/cramfs/inode.c
index 37a91a153aa5..8a9d5d3b3262 100644
--- a/fs/cramfs/inode.c
+++ b/fs/cramfs/inode.c
@@ -322,8 +322,10 @@ out:
322 return -EINVAL; 322 return -EINVAL;
323} 323}
324 324
325static int cramfs_statfs(struct super_block *sb, struct kstatfs *buf) 325static int cramfs_statfs(struct dentry *dentry, struct kstatfs *buf)
326{ 326{
327 struct super_block *sb = dentry->d_sb;
328
327 buf->f_type = CRAMFS_MAGIC; 329 buf->f_type = CRAMFS_MAGIC;
328 buf->f_bsize = PAGE_CACHE_SIZE; 330 buf->f_bsize = PAGE_CACHE_SIZE;
329 buf->f_blocks = CRAMFS_SB(sb)->blocks; 331 buf->f_blocks = CRAMFS_SB(sb)->blocks;