Searched refs:FDEV (Results 1 – 6 of 6) sorted by relevance
/Linux-v5.10/fs/f2fs/ |
D | super.c | 1202 blkdev_put(FDEV(i).bdev, FMODE_EXCL); in destroy_device_list() 1204 kvfree(FDEV(i).blkz_seq); in destroy_device_list() 1205 kfree(FDEV(i).zone_capacity_blocks); in destroy_device_list() 2548 devs[i] = bdev_get_queue(FDEV(i).bdev); in f2fs_get_devices() 3153 struct block_device *bdev = FDEV(devi).bdev; in init_blkz_info() 3169 FDEV(devi).nr_blkz = SECTOR_TO_BLOCK(nr_sectors) >> in init_blkz_info() 3172 FDEV(devi).nr_blkz++; in init_blkz_info() 3174 FDEV(devi).blkz_seq = f2fs_kvzalloc(sbi, in init_blkz_info() 3175 BITS_TO_LONGS(FDEV(devi).nr_blkz) in init_blkz_info() 3178 if (!FDEV(devi).blkz_seq) in init_blkz_info() [all …]
|
D | gc.c | 1800 GET_SEGNO(sbi, FDEV(0).end_blk) + 1; in f2fs_build_gc_manager() 1920 FDEV(last_dev).total_segments = in update_fs_metadata() 1921 (int)FDEV(last_dev).total_segments + segs; in update_fs_metadata() 1922 FDEV(last_dev).end_blk = in update_fs_metadata() 1923 (long long)FDEV(last_dev).end_blk + blks; in update_fs_metadata() 1925 FDEV(last_dev).nr_blkz = (int)FDEV(last_dev).nr_blkz + in update_fs_metadata() 1945 __u64 last_segs = FDEV(last_dev).total_segments; in f2fs_resize_fs()
|
D | segment.c | 590 ret = __submit_flush_wait(sbi, FDEV(i).bdev); in submit_flush_wait() 768 ret = __submit_flush_wait(sbi, FDEV(i).bdev); in f2fs_flush_device_cache() 1428 blkstart -= FDEV(devi).start_blk; in __queue_discard_cmd() 1802 if (blkstart < FDEV(devi).start_blk || in __f2fs_issue_discard_zone() 1803 blkstart > FDEV(devi).end_blk) { in __f2fs_issue_discard_zone() 1807 blkstart -= FDEV(devi).start_blk; in __f2fs_issue_discard_zone() 1818 devi, sbi->s_ndevs ? FDEV(devi).path : "", in __f2fs_issue_discard_zone() 4733 if (!bdev_is_zoned(FDEV(i).bdev)) in get_target_zoned_dev() 4735 if (sbi->s_ndevs == 1 || (FDEV(i).start_blk <= zone_blkaddr && in get_target_zoned_dev() 4736 zone_blkaddr <= FDEV(i).end_blk)) in get_target_zoned_dev() [all …]
|
D | data.c | 402 if (FDEV(i).start_blk <= blk_addr && in f2fs_target_device() 403 FDEV(i).end_blk >= blk_addr) { in f2fs_target_device() 404 blk_addr -= FDEV(i).start_blk; in f2fs_target_device() 405 bdev = FDEV(i).bdev; in f2fs_target_device() 425 if (FDEV(i).start_blk <= blkaddr && FDEV(i).end_blk >= blkaddr) in f2fs_target_device_index()
|
D | f2fs.h | 1212 #define FDEV(i) (sbi->devs[i]) macro 4015 return test_bit(zno, FDEV(devi).blkz_seq); in f2fs_blkz_is_seq() 4038 if (f2fs_bdev_support_discard(FDEV(i).bdev)) in f2fs_hw_support_discard() 4057 if (bdev_read_only(FDEV(i).bdev)) in f2fs_hw_is_readonly()
|
D | file.c | 2941 dev_start_segno = GET_SEGNO(sbi, FDEV(range.dev_num).start_blk); in f2fs_ioc_flush_device() 2942 dev_end_segno = GET_SEGNO(sbi, FDEV(range.dev_num).end_blk); in f2fs_ioc_flush_device() 3891 blkaddr -= FDEV(di).start_blk; in f2fs_sec_trim_file()
|