f2fs: reduce covered region of sbi->cp_rwsem in f2fs_map_blocks
authorChao Yu <chao2.yu@samsung.com>
Wed, 23 Dec 2015 09:11:43 +0000 (17:11 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 30 Dec 2015 18:14:08 +0000 (10:14 -0800)
commit3104af35eb6a2452ccc9912997e7728777100de2
treefb3afcfaa3aa9fa34d6d63bcc0581f0067eb6662
parent93bae099eaa0ae784fbe4d9eddcdc54fb5812466
f2fs: reduce covered region of sbi->cp_rwsem in f2fs_map_blocks

Only cover sbi->cp_rwsem on one dnode page's allocation and modification
instead of multiple's in f2fs_map_blocks, it can reduce the covered region
of cp_rwsem, then we can avoid potential long time delay for concurrent
checkpointer.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c