Home
last modified time | relevance | path

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

/linux-6.1.9/fs/f2fs/
Dsuper.c1526 blkdev_put(FDEV(i).bdev, FMODE_EXCL); in destroy_device_list()
1528 kvfree(FDEV(i).blkz_seq); in destroy_device_list()
3060 devs[i] = FDEV(i).bdev; in f2fs_get_devices()
3706 struct block_device *bdev = FDEV(devi).bdev; in init_blkz_info()
3729 FDEV(devi).nr_blkz = SECTOR_TO_BLOCK(nr_sectors) >> in init_blkz_info()
3732 FDEV(devi).nr_blkz++; in init_blkz_info()
3734 FDEV(devi).blkz_seq = f2fs_kvzalloc(sbi, in init_blkz_info()
3735 BITS_TO_LONGS(FDEV(devi).nr_blkz) in init_blkz_info()
3738 if (!FDEV(devi).blkz_seq) in init_blkz_info()
3742 rep_zone_arg.dev = &FDEV(devi); in init_blkz_info()
[all …]
Dgc.c1939 GET_SEGNO(sbi, FDEV(0).end_blk) + 1; in f2fs_build_gc_manager()
2059 FDEV(last_dev).total_segments = in update_fs_metadata()
2060 (int)FDEV(last_dev).total_segments + segs; in update_fs_metadata()
2061 FDEV(last_dev).end_blk = in update_fs_metadata()
2062 (long long)FDEV(last_dev).end_blk + blks; in update_fs_metadata()
2064 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()
Ddata.c383 if (FDEV(i).start_blk <= blk_addr && in f2fs_target_device()
384 FDEV(i).end_blk >= blk_addr) { in f2fs_target_device()
385 blk_addr -= FDEV(i).start_blk; in f2fs_target_device()
386 bdev = FDEV(i).bdev; in f2fs_target_device()
405 if (FDEV(i).start_blk <= blkaddr && FDEV(i).end_blk >= blkaddr) in f2fs_target_device_index()
1504 map->m_bdev = FDEV(bidx).bdev; in f2fs_map_blocks()
1505 map->m_pblk -= FDEV(bidx).start_blk; in f2fs_map_blocks()
1507 FDEV(bidx).end_blk + 1 - map->m_pblk); in f2fs_map_blocks()
1650 map->m_bdev = FDEV(bidx).bdev; in f2fs_map_blocks()
1655 if (map->m_multidev_dio && map->m_bdev != FDEV(bidx).bdev) in f2fs_map_blocks()
[all …]
Dsegment.c507 ret = __submit_flush_wait(sbi, FDEV(i).bdev); in submit_flush_wait()
689 ret = __submit_flush_wait(sbi, FDEV(i).bdev); in f2fs_flush_device_cache()
1358 blkstart -= FDEV(devi).start_blk; in __queue_discard_cmd()
1737 if (blkstart < FDEV(devi).start_blk || in __f2fs_issue_discard_zone()
1738 blkstart > FDEV(devi).end_blk) { in __f2fs_issue_discard_zone()
1742 blkstart -= FDEV(devi).start_blk; in __f2fs_issue_discard_zone()
1753 devi, sbi->s_ndevs ? FDEV(devi).path : "", in __f2fs_issue_discard_zone()
3320 unsigned int blks = FDEV(devidx).end_blk - blkaddr + 1; in f2fs_update_device_state()
4752 if (!bdev_is_zoned(FDEV(i).bdev)) in get_target_zoned_dev()
4754 if (sbi->s_ndevs == 1 || (FDEV(i).start_blk <= zone_blkaddr && in get_target_zoned_dev()
[all …]
Df2fs.h1242 #define FDEV(i) (sbi->devs[i]) macro
4420 return test_bit(zno, FDEV(devi).blkz_seq); in f2fs_blkz_is_seq()
4442 if (f2fs_bdev_support_discard(FDEV(i).bdev)) in f2fs_hw_support_discard()
4461 if (bdev_read_only(FDEV(i).bdev)) in f2fs_hw_is_readonly()
Dfile.c2938 dev_start_segno = GET_SEGNO(sbi, FDEV(range.dev_num).start_blk); in f2fs_ioc_flush_device()
2939 dev_end_segno = GET_SEGNO(sbi, FDEV(range.dev_num).end_blk); in f2fs_ioc_flush_device()
3824 blkaddr -= FDEV(di).start_blk; in f2fs_sec_trim_file()
Dcheckpoint.c1442 sectors += get_sectors_written(FDEV(i).bdev); in f2fs_get_sectors_written()