]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
f2fs: don't call iput() from f2fs_drop_inode()
authorMateusz Guzik <mjguzik@gmail.com>
Tue, 30 Sep 2025 23:29:57 +0000 (01:29 +0200)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 13 Oct 2025 23:55:44 +0000 (23:55 +0000)
commit1ee889fdf409ce68c1e3b62912333a5cc69acaa0
tree926016fae908a7a80803f17f80b1389800c9e017
parent3a8660878839faadb4f1a6dd72c3179c1df56787
f2fs: don't call iput() from f2fs_drop_inode()

iput() calls the problematic routine, which does a ->i_count inc/dec
cycle. Undoing it with iput() recurses into the problem.

Note f2fs should not be playing games with the refcount to begin with,
but that will be handled later. Right now solve the immediate
regression.

Fixes: bc986b1d756482a ("fs: stop accessing ->i_count directly in f2fs and gfs2")
Reported-by: kernel test robot <oliver.sang@intel.com>
Closes: https://lore.kernel.org/oe-lkp/202509301450.138b448f-lkp@intel.com
Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c