diff options
author | Gu Zheng <guz.fnst@cn.fujitsu.com> | 2014-10-20 17:45:50 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-11-03 16:07:36 -0800 |
commit | c6ac4c0ec416e77cab09cac6cee2d100fbd7fc82 (patch) | |
tree | 24dd196ef82d5a87dc683640fb5366a1d27e19ba /fs/f2fs/node.h | |
parent | fa528722d06ecbee9d918b9eec58c5d4c2978839 (diff) |
f2fs: introduce f2fs_change_bit to simplify the change bit logic
Introduce f2fs_change_bit to simplify the change bit logic in
function set_to_next_nat{sit}.
Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/node.h')
-rw-r--r-- | fs/f2fs/node.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/f2fs/node.h b/fs/f2fs/node.h index 8d5e6e0dd840..acb71e507a7a 100644 --- a/fs/f2fs/node.h +++ b/fs/f2fs/node.h @@ -192,10 +192,7 @@ static inline void set_to_next_nat(struct f2fs_nm_info *nm_i, nid_t start_nid) { unsigned int block_off = NAT_BLOCK_OFFSET(start_nid); - if (f2fs_test_bit(block_off, nm_i->nat_bitmap)) - f2fs_clear_bit(block_off, nm_i->nat_bitmap); - else - f2fs_set_bit(block_off, nm_i->nat_bitmap); + f2fs_change_bit(block_off, nm_i->nat_bitmap); } static inline void fill_node_footer(struct page *page, nid_t nid, |