f2fs: seperate read nat page from nat_tree_lock
authorYunlei He <heyunlei@huawei.com>
Sat, 22 Apr 2017 10:06:26 +0000 (18:06 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 25 Apr 2017 21:16:39 +0000 (14:16 -0700)
commit66a82d1fc7e058b28189fe068f2a5efd9abc719a
treec1f18c50d4e4a214db2ea75827f6fb21075303aa
parentd3bb910c15d75ee3340311c64a1c05985bb663a3
f2fs: seperate read nat page from nat_tree_lock

This patch seperate nat page read io from nat_tree_lock.

-lock_page
-get_node_info()
-current_nat_addr

......            ->       write_checkpoint

-get_meta_page

Because we lock node page, we can make sure no other threads
modify this nid concurrently. So we just obtain current_nat_addr
under nat_tree_lock, node info is always same in both nat pack.

Signed-off-by: Yunlei He <heyunlei@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/node.c