summaryrefslogtreecommitdiffstats
path: root/target/linux/generic-2.6/patches-2.6.27/008-squashfs_vfs_super.patch
blob: f1dc2d7519a3733a189720cbf09161b419ec2c0a (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/fs/squashfs/inode.c
+++ b/fs/squashfs/inode.c
@@ -1179,7 +1179,7 @@ failure:
 
 static int squashfs_statfs(struct dentry *dentry, struct kstatfs *buf)
 {
-	struct squashfs_sb_info *msblk = dentry->d_inode->i_sb->s_fs_info;
+	struct squashfs_sb_info *msblk = dentry->d_sb->s_fs_info;
 	struct squashfs_super_block *sblk = &msblk->sblk;
 
 	TRACE("Entered squashfs_statfs\n");