Home
last modified time | relevance | path

Searched refs:FDEV (Results 1 – 7 of 7) sorted by relevance

/fs/f2fs/
Dsuper.c1433 blkdev_put(FDEV(i).bdev, FMODE_EXCL); in destroy_device_list()
1435 kvfree(FDEV(i).blkz_seq); in destroy_device_list()
2912 devs[i] = bdev_get_queue(FDEV(i).bdev); in f2fs_get_devices()
3543 struct block_device *bdev = FDEV(devi).bdev; in init_blkz_info()
3559 FDEV(devi).nr_blkz = SECTOR_TO_BLOCK(nr_sectors) >> in init_blkz_info()
3562 FDEV(devi).nr_blkz++; in init_blkz_info()
3564 FDEV(devi).blkz_seq = f2fs_kvzalloc(sbi, in init_blkz_info()
3565 BITS_TO_LONGS(FDEV(devi).nr_blkz) in init_blkz_info()
3568 if (!FDEV(devi).blkz_seq) in init_blkz_info()
3572 rep_zone_arg.dev = &FDEV(devi); in init_blkz_info()
[all …]
Dgc.c1938 GET_SEGNO(sbi, FDEV(0).end_blk) + 1; in f2fs_build_gc_manager()
2058 FDEV(last_dev).total_segments = in update_fs_metadata()
2059 (int)FDEV(last_dev).total_segments + segs; in update_fs_metadata()
2060 FDEV(last_dev).end_blk = in update_fs_metadata()
2061 (long long)FDEV(last_dev).end_blk + blks; in update_fs_metadata()
2063 FDEV(last_dev).nr_blkz = (int)FDEV(last_dev).nr_blkz + in update_fs_metadata()
2084 __u64 last_segs = FDEV(last_dev).total_segments; in f2fs_resize_fs()
Dsegment.c612 ret = __submit_flush_wait(sbi, FDEV(i).bdev); in submit_flush_wait()
790 ret = __submit_flush_wait(sbi, FDEV(i).bdev); in f2fs_flush_device_cache()
1457 blkstart -= FDEV(devi).start_blk; in __queue_discard_cmd()
1837 if (blkstart < FDEV(devi).start_blk || in __f2fs_issue_discard_zone()
1838 blkstart > FDEV(devi).end_blk) { in __f2fs_issue_discard_zone()
1842 blkstart -= FDEV(devi).start_blk; in __f2fs_issue_discard_zone()
1853 devi, sbi->s_ndevs ? FDEV(devi).path : "", in __f2fs_issue_discard_zone()
4899 if (!bdev_is_zoned(FDEV(i).bdev)) in get_target_zoned_dev()
4901 if (sbi->s_ndevs == 1 || (FDEV(i).start_blk <= zone_blkaddr && in get_target_zoned_dev()
4902 zone_blkaddr <= FDEV(i).end_blk)) in get_target_zoned_dev()
[all …]
Ddata.c375 if (FDEV(i).start_blk <= blk_addr && in f2fs_target_device()
376 FDEV(i).end_blk >= blk_addr) { in f2fs_target_device()
377 blk_addr -= FDEV(i).start_blk; in f2fs_target_device()
378 bdev = FDEV(i).bdev; in f2fs_target_device()
398 if (FDEV(i).start_blk <= blkaddr && FDEV(i).end_blk >= blkaddr) in f2fs_target_device_index()
Df2fs.h1210 #define FDEV(i) (sbi->devs[i]) macro
4368 return test_bit(zno, FDEV(devi).blkz_seq); in f2fs_blkz_is_seq()
4391 if (f2fs_bdev_support_discard(FDEV(i).bdev)) in f2fs_hw_support_discard()
4410 if (bdev_read_only(FDEV(i).bdev)) in f2fs_hw_is_readonly()
Dfile.c2982 dev_start_segno = GET_SEGNO(sbi, FDEV(range.dev_num).start_blk); in f2fs_ioc_flush_device()
2983 dev_end_segno = GET_SEGNO(sbi, FDEV(range.dev_num).end_blk); in f2fs_ioc_flush_device()
3940 blkaddr -= FDEV(di).start_blk; in f2fs_sec_trim_file()
Dcheckpoint.c1429 sectors += get_sectors_written(FDEV(i).bdev); in f2fs_get_sectors_written()