fix a vfs api bug in squashfs triggered by zabbix-agent (#4365)
SVN-Revision: 15098
This commit is contained in:
parent
de0332f86a
commit
9c078b1a46
@ -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");
|
@ -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");
|
@ -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");
|
Loading…
Reference in New Issue
Block a user