MAIN_SEGS 112 fs/f2fs/debug.c si->sits = MAIN_SEGS(sbi); MAIN_SEGS 163 fs/f2fs/debug.c for (segno = 0; segno < MAIN_SEGS(sbi); segno += sbi->segs_per_sec) { MAIN_SEGS 205 fs/f2fs/debug.c si->base_mem += MAIN_SEGS(sbi) * sizeof(struct seg_entry); MAIN_SEGS 206 fs/f2fs/debug.c si->base_mem += f2fs_bitmap_size(MAIN_SEGS(sbi)); MAIN_SEGS 207 fs/f2fs/debug.c si->base_mem += 2 * SIT_VBLOCK_MAP_SIZE * MAIN_SEGS(sbi); MAIN_SEGS 208 fs/f2fs/debug.c si->base_mem += SIT_VBLOCK_MAP_SIZE * MAIN_SEGS(sbi); MAIN_SEGS 216 fs/f2fs/debug.c si->base_mem += f2fs_bitmap_size(MAIN_SEGS(sbi)); MAIN_SEGS 225 fs/f2fs/debug.c si->base_mem += NR_DIRTY_TYPE * f2fs_bitmap_size(MAIN_SEGS(sbi)); MAIN_SEGS 1449 fs/f2fs/gc.c MAIN_SEGS(sbi) = (int)MAIN_SEGS(sbi) + segs; MAIN_SEGS 1523 fs/f2fs/gc.c MAIN_SEGS(sbi) - 1); MAIN_SEGS 306 fs/f2fs/recovery.c unsigned int free_blocks = MAIN_SEGS(sbi) * sbi->blocks_per_seg - MAIN_SEGS 865 fs/f2fs/segment.c for_each_set_bit(segno, dirty_i->dirty_segmap[DIRTY], MAIN_SEGS(sbi)) { MAIN_SEGS 888 fs/f2fs/segment.c for_each_set_bit(segno, dirty_i->dirty_segmap[DIRTY], MAIN_SEGS(sbi)) { MAIN_SEGS 922 fs/f2fs/segment.c for_each_set_bit(segno, dirty_i->dirty_segmap[DIRTY], MAIN_SEGS(sbi)) { MAIN_SEGS 1926 fs/f2fs/segment.c for_each_set_bit(segno, dirty_i->dirty_segmap[PRE], MAIN_SEGS(sbi)) MAIN_SEGS 1951 fs/f2fs/segment.c start = find_next_bit(prefree_map, MAIN_SEGS(sbi), end + 1); MAIN_SEGS 1952 fs/f2fs/segment.c if (start >= MAIN_SEGS(sbi)) MAIN_SEGS 1954 fs/f2fs/segment.c end = find_next_zero_bit(prefree_map, MAIN_SEGS(sbi), MAIN_SEGS 2057 fs/f2fs/segment.c dcc->max_discards = MAIN_SEGS(sbi) << sbi->log_blocks_per_seg; MAIN_SEGS 2364 fs/f2fs/segment.c if (segno < MAIN_SEGS(sbi) && segno % sbi->segs_per_sec) MAIN_SEGS 2840 fs/f2fs/segment.c end_segno = (end >= MAX_BLKADDR(sbi)) ? MAIN_SEGS(sbi) - 1 : MAIN_SEGS 3796 fs/f2fs/segment.c for_each_set_bit(segno, bitmap, MAIN_SEGS(sbi)) MAIN_SEGS 3866 fs/f2fs/segment.c (unsigned long)MAIN_SEGS(sbi)); MAIN_SEGS 3962 fs/f2fs/segment.c MAIN_SEGS(sbi)), MAIN_SEGS 3967 fs/f2fs/segment.c main_bitmap_size = f2fs_bitmap_size(MAIN_SEGS(sbi)); MAIN_SEGS 3974 fs/f2fs/segment.c bitmap_size = MAIN_SEGS(sbi) * SIT_VBLOCK_MAP_SIZE * 4; MAIN_SEGS 3976 fs/f2fs/segment.c bitmap_size = MAIN_SEGS(sbi) * SIT_VBLOCK_MAP_SIZE * 3; MAIN_SEGS 3984 fs/f2fs/segment.c for (start = 0; start < MAIN_SEGS(sbi); start++) { MAIN_SEGS 4063 fs/f2fs/segment.c bitmap_size = f2fs_bitmap_size(MAIN_SEGS(sbi)); MAIN_SEGS 4133 fs/f2fs/segment.c for (; start < end && start < MAIN_SEGS(sbi); start++) { MAIN_SEGS 4177 fs/f2fs/segment.c if (start >= MAIN_SEGS(sbi)) { MAIN_SEGS 4230 fs/f2fs/segment.c for (start = 0; start < MAIN_SEGS(sbi); start++) { MAIN_SEGS 4255 fs/f2fs/segment.c segno = find_next_inuse(free_i, MAIN_SEGS(sbi), offset); MAIN_SEGS 4256 fs/f2fs/segment.c if (segno >= MAIN_SEGS(sbi)) MAIN_SEGS 4297 fs/f2fs/segment.c bitmap_size = f2fs_bitmap_size(MAIN_SEGS(sbi)); MAIN_SEGS 4355 fs/f2fs/segment.c for (segno = 0; segno < MAIN_SEGS(sbi); segno += sbi->segs_per_sec) { MAIN_SEGS 112 fs/f2fs/segment.h DIV_ROUND_UP(MAIN_SEGS(sbi), SIT_ENTRY_PER_BLOCK) MAIN_SEGS 383 fs/f2fs/segment.h (unsigned long)MAIN_SEGS(sbi));