Home
last modified time | relevance | path

Searched refs:BLKS_PER_SEG (Results 1 – 11 of 11) sorted by relevance

/openbmc/linux/fs/f2fs/
H A Dsegment.h96 (GET_SEGOFF_FROM_SEG0(sbi, blk_addr) & (BLKS_PER_SEG(sbi) - 1))
103 (SEGS_PER_SEC(sbi) * BLKS_PER_SEG(sbi) - \
799 if (usable_blks_per_seg < BLKS_PER_SEG(sbi)) in check_block_count()
801 BLKS_PER_SEG(sbi), in check_block_count()
802 usable_blks_per_seg) != BLKS_PER_SEG(sbi)); in check_block_count()
921 return BLKS_PER_SEG(sbi); in nr_pages_to_skip()
923 return 8 * BLKS_PER_SEG(sbi); in nr_pages_to_skip()
H A Dsegment.c1154 size = BLKS_PER_SEG(sbi); in __check_sit_bitmap()
2072 if (se->valid_blocks == BLKS_PER_SEG(sbi) || in add_discard_addrs()
2091 start = __find_rev_next_bit(dmap, BLKS_PER_SEG(sbi), end + 1); in add_discard_addrs()
2092 if (start >= BLKS_PER_SEG(sbi)) in add_discard_addrs()
2096 BLKS_PER_SEG(sbi), start + 1); in add_discard_addrs()
2097 if (force && start && end != BLKS_PER_SEG(sbi) && in add_discard_addrs()
2230 BLKS_PER_SEG(sbi), cur_pos); in f2fs_clear_prefree_segments()
2242 BLKS_PER_SEG(sbi), cur_pos); in f2fs_clear_prefree_segments()
2248 if (cur_pos < BLKS_PER_SEG(sbi)) in f2fs_clear_prefree_segments()
2296 dcc->discard_granularity = BLKS_PER_SEG(sbi); in create_discard_cmd_control()
[all …]
H A Dnode.h211 (block_off & (BLKS_PER_SEG(sbi) - 1))); in current_nat_addr()
214 block_addr += BLKS_PER_SEG(sbi); in current_nat_addr()
H A Dcheckpoint.c892 if (cp_blocks > BLKS_PER_SEG(sbi) || cp_blocks <= F2FS_CP_PACKS) { in validate_checkpoint()
1332 NM_I(sbi)->nat_bits_blocks > BLKS_PER_SEG(sbi)) { in update_ckpt_flags()
1535 blk = start_blk + BLKS_PER_SEG(sbi) - nm_i->nat_bits_blocks; in do_checkpoint()
1734 sbi->max_orphans = (BLKS_PER_SEG(sbi) - F2FS_CP_PACKS - in f2fs_init_ino_entry_info()
H A Ddebug.c138 si->total_count = (int)sbi->user_block_count / BLKS_PER_SEG(sbi); in update_general_status()
211 if (blks == BLKS_PER_SEG(sbi)) in update_general_status()
H A Dgc.c300 return BLKS_PER_SEG(sbi); in get_max_cost()
306 return 2 * BLKS_PER_SEG(sbi) * p->ofs_unit; in get_max_cost()
633 if (vblocks == BLKS_PER_SEG(sbi)) in atssr_lookup_victim()
H A Drecovery.c357 else if (next_blkaddr % BLKS_PER_SEG(sbi)) in adjust_por_ra_blocks()
H A Dfile.c2794 cnt < BLKS_PER_SEG(sbi)) { in f2fs_defragment_range()
2816 if (map.m_lblk < pg_end && cnt < BLKS_PER_SEG(sbi)) in f2fs_defragment_range()
4271 if (get_dirty_pages(inode) >= BLKS_PER_SEG(sbi)) { in f2fs_ioc_decompress_file()
4348 if (get_dirty_pages(inode) >= BLKS_PER_SEG(sbi)) { in f2fs_ioc_compress_file()
H A Df2fs.h1817 #define BLKS_PER_SEG(sbi) \ macro
2603 start_addr += BLKS_PER_SEG(sbi); in __start_cp_addr()
2612 start_addr += BLKS_PER_SEG(sbi); in __start_cp_next_addr()
H A Dnode.c2867 last_offset = BLKS_PER_SEG(sbi); in f2fs_restore_node_summary()
3184 nat_bits_addr = __start_cp_addr(sbi) + BLKS_PER_SEG(sbi) - in __get_nat_bitmaps()
H A Dsuper.c3657 blocks_per_seg = BLKS_PER_SEG(sbi); in f2fs_sanity_check_ckpt()