f2fs: unlock cp_rwsem early for IPU writes
authorChao Yu <yuchao0@huawei.com>
Tue, 18 Apr 2017 11:23:39 +0000 (19:23 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 19 Apr 2017 18:00:44 +0000 (11:00 -0700)
commit001c584cca6fce8e91f19eca88781b8c16d1ea42
treed5c7df8a2797882c41b95e3ffeebd0ee3c496fae
parentdf0f6b44dd59cd07aa3ff583dee04b3b563648d0
f2fs: unlock cp_rwsem early for IPU writes

For IPU writes, there won't be any udpates in dnode page since we
will reuse old block address instead of allocating new one, so we
don't need to lock cp_rwsem during IPU IO submitting.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
fs/f2fs/data.c
fs/f2fs/f2fs.h