Searched refs:nm_i (Results 1 – 4 of 4) sorted by relevance
21 struct f2fs_nm_info *nm_i = NM_I(sbi); in f2fs_alloc_nid() local25 for (i = 0; i < nm_i->max_nid; i++) in f2fs_alloc_nid()26 if(f2fs_test_bit(i, nm_i->nid_bitmap) == 0) in f2fs_alloc_nid()29 ASSERT(i < nm_i->max_nid); in f2fs_alloc_nid()30 f2fs_set_bit(i, nm_i->nid_bitmap); in f2fs_alloc_nid()
695 struct f2fs_nm_info *nm_i = NM_I(sbi); in current_nat_addr() local703 block_addr = (pgoff_t)(nm_i->nat_blkaddr + in current_nat_addr()707 if (f2fs_test_bit(block_off, nm_i->nat_bitmap)) in current_nat_addr()715 struct f2fs_nm_info *nm_i = NM_I(sbi); in f2fs_init_nid_bitmap() local716 int nid_bitmap_size = (nm_i->max_nid + BITS_PER_BYTE - 1) / BITS_PER_BYTE; in f2fs_init_nid_bitmap()728 nm_i->nid_bitmap = (char *)calloc(nid_bitmap_size, 1); in f2fs_init_nid_bitmap()729 if (!nm_i->nid_bitmap) in f2fs_init_nid_bitmap()733 f2fs_set_bit(0, nm_i->nid_bitmap); in f2fs_init_nid_bitmap()737 for (nid = 0; nid < nm_i->max_nid; nid++) { in f2fs_init_nid_bitmap()747 f2fs_set_bit(nid, nm_i->nid_bitmap); in f2fs_init_nid_bitmap()[all …]
248 struct f2fs_nm_info *nm_i = NM_I(sbi); in shrink_nats() local266 for (nid = nm_i->max_nid - 1; nid > new_max_nid; nid -= NAT_ENTRY_PER_BLOCK) { in shrink_nats()273 if (f2fs_test_bit(block_off, nm_i->nat_bitmap)) in shrink_nats()285 nm_i->max_nid = new_max_nid; in shrink_nats()296 struct f2fs_nm_info *nm_i = NM_I(sbi); in migrate_nat() local309 for (nid = nm_i->max_nid - 1; nid >= 0; nid -= NAT_ENTRY_PER_BLOCK) { in migrate_nat()316 if (f2fs_test_bit(block_off, nm_i->nat_bitmap)) in migrate_nat()341 for (nid = nm_i->max_nid; nid < new_max_nid; in migrate_nat()
29 struct f2fs_nm_info *nm_i = NM_I(sbi); in nat_dump() local53 block_addr = (pgoff_t)(nm_i->nat_blkaddr + in nat_dump()57 if (f2fs_test_bit(block_off, nm_i->nat_bitmap)) { in nat_dump()