f2fs: cover more area with nat_tree_lock
authorJaegeuk Kim <jaegeuk@kernel.org>
Sat, 2 Jan 2016 17:19:41 +0000 (09:19 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 7 Jan 2016 03:15:48 +0000 (19:15 -0800)
commita51311938e14c17f5a94d30baac9d7bec71f5858
treea3d1d591b8592d8ad6ff3545f36d014c79b9b149
parente0afc4d6d0d3e7e5a99f691bc64ae7c74bea790e
f2fs: cover more area with nat_tree_lock

There was a subtle bug on nat cache management which incurs wrong nid allocation
or wrong block addresses when try_to_free_nats is triggered heavily.
This patch enlarges the previous coverage of nat_tree_lock to avoid data race.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/node.c