f2fs: reduce competition among node page writes
authorChao Yu <chao2.yu@samsung.com>
Thu, 3 Jul 2014 10:58:39 +0000 (18:58 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 31 Jul 2014 06:28:37 +0000 (23:28 -0700)
commitb3582c68920105e29d219714d8a6fbde25a43379
tree200ab9ca194921c8baad9954fee36eee072a772f
parent65b85ccce03f17b3098273192b20885f3fead820
f2fs: reduce competition among node page writes

We do not need to block on ->node_write among different node page writers e.g.
fsync/flush, unless we have a node page writer from write_checkpoint.
So it's better use rw_semaphore instead of mutex type for ->node_write to
promote performance.

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