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)
commit1256010ab1a372c8ffc01fc37ff767d8bc15378b
tree9baae96617ee3546c8eb14b9c5b853aab455ea97
parentb434babf854eab82397759e98425423cd9bc4786
f2fs: reduce region of f2fs_lock_op covered for better concurrency

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