f2fs: reduce competition among node page writes
authorChao Yu <chao2.yu@samsung.com>
Thu, 3 Jul 2014 10:58:39 +0000 (18:58 +0800)
committerIan Chang <ianc@nvidia.com>
Wed, 27 Jan 2016 10:04:08 +0000 (18:04 +0800)
commit60a927b106495a8c631e21004cb92550e4bda201
tree6dbae1ffcad8acc917e00a301d17f8982ff0280f
parenta631ec89c38edf144effaf554564496c4e0816be
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