Searched refs:FDEV (Results 1 – 7 of 7) sorted by relevance
/Linux-v5.15/fs/f2fs/ |
D | super.c | 1474 blkdev_put(FDEV(i).bdev, FMODE_EXCL); in destroy_device_list() 1476 kvfree(FDEV(i).blkz_seq); in destroy_device_list() 1477 kfree(FDEV(i).zone_capacity_blocks); in destroy_device_list() 2970 devs[i] = bdev_get_queue(FDEV(i).bdev); in f2fs_get_devices() 3597 struct block_device *bdev = FDEV(devi).bdev; in init_blkz_info() 3613 FDEV(devi).nr_blkz = SECTOR_TO_BLOCK(nr_sectors) >> in init_blkz_info() 3616 FDEV(devi).nr_blkz++; in init_blkz_info() 3618 FDEV(devi).blkz_seq = f2fs_kvzalloc(sbi, in init_blkz_info() 3619 BITS_TO_LONGS(FDEV(devi).nr_blkz) in init_blkz_info() 3622 if (!FDEV(devi).blkz_seq) in init_blkz_info() [all …]
|
D | segment.c | 605 ret = __submit_flush_wait(sbi, FDEV(i).bdev); in submit_flush_wait() 787 ret = __submit_flush_wait(sbi, FDEV(i).bdev); in f2fs_flush_device_cache() 1458 blkstart -= FDEV(devi).start_blk; in __queue_discard_cmd() 1838 if (blkstart < FDEV(devi).start_blk || in __f2fs_issue_discard_zone() 1839 blkstart > FDEV(devi).end_blk) { in __f2fs_issue_discard_zone() 1843 blkstart -= FDEV(devi).start_blk; in __f2fs_issue_discard_zone() 1854 devi, sbi->s_ndevs ? FDEV(devi).path : "", in __f2fs_issue_discard_zone() 4862 if (!bdev_is_zoned(FDEV(i).bdev)) in get_target_zoned_dev() 4864 if (sbi->s_ndevs == 1 || (FDEV(i).start_blk <= zone_blkaddr && in get_target_zoned_dev() 4865 zone_blkaddr <= FDEV(i).end_blk)) in get_target_zoned_dev() [all …]
|
D | gc.c | 1842 GET_SEGNO(sbi, FDEV(0).end_blk) + 1; in f2fs_build_gc_manager() 1962 FDEV(last_dev).total_segments = in update_fs_metadata() 1963 (int)FDEV(last_dev).total_segments + segs; in update_fs_metadata() 1964 FDEV(last_dev).end_blk = in update_fs_metadata() 1965 (long long)FDEV(last_dev).end_blk + blks; in update_fs_metadata() 1967 FDEV(last_dev).nr_blkz = (int)FDEV(last_dev).nr_blkz + in update_fs_metadata() 1987 __u64 last_segs = FDEV(last_dev).total_segments; in f2fs_resize_fs()
|
D | data.c | 364 if (FDEV(i).start_blk <= blk_addr && in f2fs_target_device() 365 FDEV(i).end_blk >= blk_addr) { in f2fs_target_device() 366 blk_addr -= FDEV(i).start_blk; in f2fs_target_device() 367 bdev = FDEV(i).bdev; in f2fs_target_device() 387 if (FDEV(i).start_blk <= blkaddr && FDEV(i).end_blk >= blkaddr) in f2fs_target_device_index()
|
D | f2fs.h | 1196 #define FDEV(i) (sbi->devs[i]) macro 4213 return test_bit(zno, FDEV(devi).blkz_seq); in f2fs_blkz_is_seq() 4236 if (f2fs_bdev_support_discard(FDEV(i).bdev)) in f2fs_hw_support_discard() 4255 if (bdev_read_only(FDEV(i).bdev)) in f2fs_hw_is_readonly()
|
D | file.c | 2926 dev_start_segno = GET_SEGNO(sbi, FDEV(range.dev_num).start_blk); in f2fs_ioc_flush_device() 2927 dev_end_segno = GET_SEGNO(sbi, FDEV(range.dev_num).end_blk); in f2fs_ioc_flush_device() 3813 blkaddr -= FDEV(di).start_blk; in f2fs_sec_trim_file()
|
D | checkpoint.c | 1423 sectors += get_sectors_written(FDEV(i).bdev); in f2fs_get_sectors_written()
|