Lines Matching refs:block_off
284 pgoff_t block_off; in shrink_nats() local
298 block_off = nid / NAT_ENTRY_PER_BLOCK; in shrink_nats()
299 seg_off = block_off >> sbi->log_blocks_per_seg; in shrink_nats()
302 (block_off & ((1 << sbi->log_blocks_per_seg) - 1))); in shrink_nats()
304 if (f2fs_test_bit(block_off, nm_i->nat_bitmap)) in shrink_nats()
333 pgoff_t block_off; in migrate_nat() local
341 block_off = nid / NAT_ENTRY_PER_BLOCK; in migrate_nat()
342 seg_off = block_off >> sbi->log_blocks_per_seg; in migrate_nat()
345 (block_off & ((1 << sbi->log_blocks_per_seg) - 1))); in migrate_nat()
348 if (f2fs_test_bit(block_off, nm_i->nat_bitmap)) { in migrate_nat()
350 f2fs_clear_bit(block_off, nm_i->nat_bitmap); in migrate_nat()
358 (block_off & ((1 << sbi->log_blocks_per_seg) - 1))); in migrate_nat()
377 block_off = nid / NAT_ENTRY_PER_BLOCK; in migrate_nat()
378 seg_off = block_off >> sbi->log_blocks_per_seg; in migrate_nat()
381 (block_off & ((1 << sbi->log_blocks_per_seg) - 1))); in migrate_nat()