aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/node.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/f2fs/node.h')
-rw-r--r--fs/f2fs/node.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/f2fs/node.h b/fs/f2fs/node.h
index 8d5e6e0dd840..d10b6448a671 100644
--- a/fs/f2fs/node.h
+++ b/fs/f2fs/node.h
@@ -106,7 +106,8 @@ static inline void raw_nat_from_node_info(struct f2fs_nat_entry *raw_ne,
106enum mem_type { 106enum mem_type {
107 FREE_NIDS, /* indicates the free nid list */ 107 FREE_NIDS, /* indicates the free nid list */
108 NAT_ENTRIES, /* indicates the cached nat entry */ 108 NAT_ENTRIES, /* indicates the cached nat entry */
109 DIRTY_DENTS /* indicates dirty dentry pages */ 109 DIRTY_DENTS, /* indicates dirty dentry pages */
110 INO_ENTRIES, /* indicates inode entries */
110}; 111};
111 112
112struct nat_entry_set { 113struct nat_entry_set {
@@ -192,10 +193,7 @@ static inline void set_to_next_nat(struct f2fs_nm_info *nm_i, nid_t start_nid)
192{ 193{
193 unsigned int block_off = NAT_BLOCK_OFFSET(start_nid); 194 unsigned int block_off = NAT_BLOCK_OFFSET(start_nid);
194 195
195 if (f2fs_test_bit(block_off, nm_i->nat_bitmap)) 196 f2fs_change_bit(block_off, nm_i->nat_bitmap);
196 f2fs_clear_bit(block_off, nm_i->nat_bitmap);
197 else
198 f2fs_set_bit(block_off, nm_i->nat_bitmap);
199} 197}
200 198
201static inline void fill_node_footer(struct page *page, nid_t nid, 199static inline void fill_node_footer(struct page *page, nid_t nid,