Skip to content
Commit 36062b91 authored by zhangxirui's avatar zhangxirui Committed by Jaegeuk Kim
Browse files

f2fs: use inode_lock_shared instead of inode_lock in f2fs_seek_block()



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: default avatarzhangxirui <xirui.zhang@vivo.com>
Reviewed-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 6bc40e44
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment