Home
last modified time | relevance | path

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

/fs/f2fs/
Dsuper.c1560 blkdev_put(FDEV(i).bdev, sbi->sb); in destroy_device_list()
1562 kvfree(FDEV(i).blkz_seq); in destroy_device_list()
3218 devs[i] = FDEV(i).bdev; in f2fs_get_devices()
3874 struct block_device *bdev = FDEV(devi).bdev; in init_blkz_info()
3884 if (bdev_is_zoned(FDEV(devi).bdev)) { in init_blkz_info()
3901 FDEV(devi).nr_blkz = div_u64(SECTOR_TO_BLOCK(nr_sectors), in init_blkz_info()
3904 FDEV(devi).nr_blkz++; in init_blkz_info()
3906 FDEV(devi).blkz_seq = f2fs_kvzalloc(sbi, in init_blkz_info()
3907 BITS_TO_LONGS(FDEV(devi).nr_blkz) in init_blkz_info()
3910 if (!FDEV(devi).blkz_seq) in init_blkz_info()
[all …]
Ddata.c394 if (FDEV(i).start_blk <= blk_addr && in f2fs_target_device()
395 FDEV(i).end_blk >= blk_addr) { in f2fs_target_device()
396 blk_addr -= FDEV(i).start_blk; in f2fs_target_device()
397 bdev = FDEV(i).bdev; in f2fs_target_device()
416 if (FDEV(i).start_blk <= blkaddr && FDEV(i).end_blk >= blkaddr) in f2fs_target_device_index()
939 if (blkaddr < FDEV(devi).start_blk || in is_end_zone_blkaddr()
940 blkaddr > FDEV(devi).end_blk) { in is_end_zone_blkaddr()
944 blkaddr -= FDEV(devi).start_blk; in is_end_zone_blkaddr()
945 bdev = FDEV(devi).bdev; in is_end_zone_blkaddr()
1528 if (map->m_multidev_dio && map->m_bdev != FDEV(bidx).bdev) in map_is_mergeable()
[all …]
Dgc.c1992 GET_SEGNO(sbi, FDEV(0).end_blk) + 1; in f2fs_build_gc_manager()
2132 FDEV(last_dev).total_segments = in update_fs_metadata()
2133 (int)FDEV(last_dev).total_segments + segs; in update_fs_metadata()
2134 FDEV(last_dev).end_blk = in update_fs_metadata()
2135 (long long)FDEV(last_dev).end_blk + blks; in update_fs_metadata()
2137 FDEV(last_dev).nr_blkz = FDEV(last_dev).nr_blkz + in update_fs_metadata()
2158 __u64 last_segs = FDEV(last_dev).total_segments; in f2fs_resize_fs()
Dsegment.c546 ret = __submit_flush_wait(sbi, FDEV(i).bdev); in submit_flush_wait()
727 ret = __submit_flush_wait(sbi, FDEV(i).bdev); in f2fs_flush_device_cache()
1559 blkstart -= FDEV(devi).start_blk; in __queue_discard_cmd()
1960 if (blkstart < FDEV(devi).start_blk || in __f2fs_issue_discard_zone()
1961 blkstart > FDEV(devi).end_blk) { in __f2fs_issue_discard_zone()
1965 blkstart -= FDEV(devi).start_blk; in __f2fs_issue_discard_zone()
1976 devi, sbi->s_ndevs ? FDEV(devi).path : "", in __f2fs_issue_discard_zone()
3194 err = f2fs_gc_range(sbi, 0, GET_SEGNO(sbi, FDEV(0).end_blk), true, 1); in f2fs_allocate_pinning_section()
3730 unsigned int blks = FDEV(devidx).end_blk - blkaddr + 1; in f2fs_update_device_state()
5143 if (!bdev_is_zoned(FDEV(i).bdev)) in get_target_zoned_dev()
[all …]
Dsysfs.c1546 i, bdev_is_zoned(FDEV(i).bdev), in disk_map_seq_show()
1547 FDEV(i).start_blk, FDEV(i).end_blk, in disk_map_seq_show()
1548 FDEV(i).path); in disk_map_seq_show()
Dsegment.h965 if (bdev_is_zoned(FDEV(devi).bdev)) in first_zoned_segno()
966 return GET_SEGNO(sbi, FDEV(devi).start_blk); in first_zoned_segno()
Df2fs.h1248 #define FDEV(i) (sbi->devs[i]) macro
4482 return test_bit(zno, FDEV(devi).blkz_seq); in f2fs_blkz_is_seq()
4495 if (FDEV(i).bdev == bdev) in f2fs_bdev_index()
4520 if (f2fs_bdev_support_discard(FDEV(i).bdev)) in f2fs_hw_support_discard()
4539 if (bdev_read_only(FDEV(i).bdev)) in f2fs_hw_is_readonly()
4560 return !bdev_is_zoned(FDEV(devi).bdev); in f2fs_valid_pinned_area()
Dfile.c3095 dev_start_segno = GET_SEGNO(sbi, FDEV(range.dev_num).start_blk); in f2fs_ioc_flush_device()
3096 dev_end_segno = GET_SEGNO(sbi, FDEV(range.dev_num).end_blk); in f2fs_ioc_flush_device()
4030 blkaddr -= FDEV(di).start_blk; in f2fs_sec_trim_file()
Dcheckpoint.c1463 sectors += get_sectors_written(FDEV(i).bdev); in f2fs_get_sectors_written()