Lines Matching refs:discard_map
2031 !f2fs_test_and_set_bit(offset, se->discard_map)) in f2fs_issue_discard()
2048 unsigned long *discard_map = (unsigned long *)se->discard_map; in add_discard_addrs() local
2069 dmap[i] = force ? ~ckpt_map[i] & ~discard_map[i] : in add_discard_addrs()
2094 __set_bit_le(i, (void *)de->discard_map); in add_discard_addrs()
2207 bool is_valid = test_bit_le(0, entry->discard_map); in f2fs_clear_prefree_segments()
2211 next_pos = find_next_zero_bit_le(entry->discard_map, in f2fs_clear_prefree_segments()
2223 next_pos = find_next_bit_le(entry->discard_map, in f2fs_clear_prefree_segments()
2431 !f2fs_test_and_set_bit(offset, se->discard_map)) in update_sit_entry()
2474 f2fs_test_and_clear_bit(offset, se->discard_map)) in update_sit_entry()
4379 unsigned int discard_map = f2fs_block_unit_discard(sbi) ? 1 : 0; in build_sit_info() local
4402 bitmap_size = MAIN_SEGS(sbi) * SIT_VBLOCK_MAP_SIZE * (3 + discard_map); in build_sit_info()
4404 bitmap_size = MAIN_SEGS(sbi) * SIT_VBLOCK_MAP_SIZE * (2 + discard_map); in build_sit_info()
4424 if (discard_map) { in build_sit_info()
4425 sit_i->sentries[start].discard_map = bitmap; in build_sit_info()
4597 memset(se->discard_map, 0xff, in build_sit_entries()
4600 memcpy(se->discard_map, in build_sit_entries()
4653 memset(se->discard_map, 0xff, SIT_VBLOCK_MAP_SIZE); in build_sit_entries()
4655 memcpy(se->discard_map, se->cur_valid_map, in build_sit_entries()