diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2021-07-02 23:25:17 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-07-02 23:25:17 +0200 |
commit | e4aa67b023167c570be95a39149a918cca9e36a0 (patch) | |
tree | 230c2c101310a31068d7584370d08c4dd13fc414 /fs/jfs/inode.c | |
parent | Merge tag 'configfs-5.13' of git://git.infradead.org/users/hch/configfs (diff) | |
parent | jfs: Avoid field-overflowing memcpy() (diff) | |
download | linux-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.c | 3 |
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. |