fix a vfs api bug in squashfs triggered by zabbix-agent (#4365)
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 4 Apr 2009 09:36:00 +0000 (09:36 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 4 Apr 2009 09:36:00 +0000 (09:36 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15098 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/generic-2.6/patches-2.6.26/008-squashfs_vfs_super.patch [new file with mode: 0644]
target/linux/generic-2.6/patches-2.6.27/008-squashfs_vfs_super.patch [new file with mode: 0644]
target/linux/generic-2.6/patches-2.6.28/008-squashfs_vfs_super.patch [new file with mode: 0644]

diff --git a/target/linux/generic-2.6/patches-2.6.26/008-squashfs_vfs_super.patch b/target/linux/generic-2.6/patches-2.6.26/008-squashfs_vfs_super.patch
new file mode 100644 (file)
index 0000000..f1dc2d7
--- /dev/null
@@ -0,0 +1,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");
diff --git a/target/linux/generic-2.6/patches-2.6.27/008-squashfs_vfs_super.patch b/target/linux/generic-2.6/patches-2.6.27/008-squashfs_vfs_super.patch
new file mode 100644 (file)
index 0000000..f1dc2d7
--- /dev/null
@@ -0,0 +1,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");
diff --git a/target/linux/generic-2.6/patches-2.6.28/008-squashfs_vfs_super.patch b/target/linux/generic-2.6/patches-2.6.28/008-squashfs_vfs_super.patch
new file mode 100644 (file)
index 0000000..f1dc2d7
--- /dev/null
@@ -0,0 +1,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");
This page took 0.027462 seconds and 4 git commands to generate.