1 --- a/fs/squashfs/inode.c
2 +++ b/fs/squashfs/inode.c
3 @@ -1179,7 +1179,7 @@ failure:
5 static int squashfs_statfs(struct dentry *dentry, struct kstatfs *buf)
7 - struct squashfs_sb_info *msblk = dentry->d_inode->i_sb->s_fs_info;
8 + struct squashfs_sb_info *msblk = dentry->d_sb->s_fs_info;
9 struct squashfs_super_block *sblk = &msblk->sblk;
11 TRACE("Entered squashfs_statfs\n");