f2fs: add a function to move nid
authorFan Li <fanofcode.li@samsung.com>
Sat, 28 Oct 2017 11:03:37 +0000 (19:03 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 19 Dec 2017 03:28:31 +0000 (19:28 -0800)
commit0ccccb3839f505eb88cfaf9060292b83f1b1f4cd
treeb0b3850a4db3d9ca19a25689f769b20c70bb0ae7
parentcd3b86fce8ddfafb171f6b01dc3bc1872149d0a0
f2fs: add a function to move nid

This patch add a new function to move nid from one state to another.
Move operation is heavily used, by adding a new function for it
we can cut down some branches from several flow.

Signed-off-by: Fan li <fanofcode.li@samsung.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/node.c