f2fs: let's avoid to get cp_rwsem twice by f2fs_evict_inode by d_invalidate
authorJaegeuk Kim <jaegeuk@kernel.org>
Tue, 18 Oct 2022 00:52:05 +0000 (17:52 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 25 Oct 2022 17:44:27 +0000 (10:44 -0700)
commit14dc00a0e2dbea4b685ab9723ff511fcfd223c18
tree627f93c75afa612d56a9ca04334115fd48df6171
parentc3db3c2fd9992c08f49aa93752d3c103c3a4f6aa
f2fs: let's avoid to get cp_rwsem twice by f2fs_evict_inode by d_invalidate

f2fs_unlink
 -> f2fs_lock_op
 -> d_invalidate
  -> shrink_dentry_list
   -> iput_final
    -> f2fs_evict_inode
     -> f2fs_lock_op

Reviewed-by: Chao Yu <chao@kernel.org>
Tested-by: Yangtao Li <frank.li@vivo.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/namei.c