Messages in this thread | | | Date | Tue, 7 Nov 2023 22:16:53 +0800 | Subject | Re: [PATCH] f2fs: use inode_lock_shared instead of inode_lock in f2fs_seek_block() | From | Chao Yu <> |
| |
On 2023/10/21 20:19, zhangxirui wrote: > inode_lock_shared() -> down_read(&inode->i_rwsem) > inode_lock() -> down_write(&inode->i_rwsem) > > Inode is not updated in f2fs_seek_block(), so there is no need > to hold write lock, use read lock for more efficiency. > > Signed-off-by: zhangxirui <xirui.zhang@vivo.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Thanks,
| |