summaryrefslogtreecommitdiffstats
path: root/fs/jfs/inode.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2021-07-02 23:25:17 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2021-07-02 23:25:17 +0200
commite4aa67b023167c570be95a39149a918cca9e36a0 (patch)
tree230c2c101310a31068d7584370d08c4dd13fc414 /fs/jfs/inode.c
parentMerge tag 'configfs-5.13' of git://git.infradead.org/users/hch/configfs (diff)
parentjfs: Avoid field-overflowing memcpy() (diff)
downloadlinux-e4aa67b023167c570be95a39149a918cca9e36a0.tar.xz
linux-e4aa67b023167c570be95a39149a918cca9e36a0.zip
Merge tag 'jfs-5.14' of git://github.com/kleikamp/linux-shaggy
Pull jfs updates from David Kleikamp: "JFS fixes for 5.14" * tag 'jfs-5.14' of git://github.com/kleikamp/linux-shaggy: jfs: Avoid field-overflowing memcpy() jfs: remove unnecessary oom message jfs: fix GPF in diFree fs/jfs: Fix missing error code in lmLogInit() jfs: Remove trailing semicolon in macros fs: Fix typo issue
Diffstat (limited to 'fs/jfs/inode.c')
-rw-r--r--fs/jfs/inode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/jfs/inode.c b/fs/jfs/inode.c
index 3663dd5a23bc..57ab424c05ff 100644
--- a/fs/jfs/inode.c
+++ b/fs/jfs/inode.c
@@ -151,7 +151,8 @@ void jfs_evict_inode(struct inode *inode)
if (test_cflag(COMMIT_Freewmap, inode))
jfs_free_zero_link(inode);
- diFree(inode);
+ if (JFS_SBI(inode->i_sb)->ipimap)
+ diFree(inode);
/*
* Free the inode from the quota allocation.