f2fs: reduce region of f2fs_lock_op covered for better concurrency
authorChao Yu <chao2.yu@samsung.com>
Tue, 24 Jun 2014 06:16:24 +0000 (14:16 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 9 Jul 2014 21:04:25 +0000 (14:04 -0700)
In our rename process, region of f2fs_lock_op covered is too big as some of the
code like f2fs_empty_dir/f2fs_find_entry are not needed to protect by this lock.

So in the extreme case like doing checkpoint when we rename old inode to exist
inode in a large directory could cause lower concurrency.

Let's reduce the region of f2fs_lock_op to fix this.

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

diff --cc fs/f2fs/namei.c
Simple merge