Home
last modified time | relevance | path

Searched refs:devi (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.15/fs/f2fs/
Dsuper.c3595 static int init_blkz_info(struct f2fs_sb_info *sbi, int devi) in init_blkz_info() argument
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()
3626 FDEV(devi).zone_capacity_blocks = f2fs_kzalloc(sbi, in init_blkz_info()
3627 FDEV(devi).nr_blkz * sizeof(block_t), in init_blkz_info()
3629 if (!FDEV(devi).zone_capacity_blocks) in init_blkz_info()
[all …]
Dsegment.c1456 int devi = f2fs_target_device_index(sbi, blkstart); in __queue_discard_cmd() local
1458 blkstart -= FDEV(devi).start_blk; in __queue_discard_cmd()
1834 int devi = 0; in __f2fs_issue_discard_zone() local
1837 devi = f2fs_target_device_index(sbi, blkstart); in __f2fs_issue_discard_zone()
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()
1847 if (f2fs_blkz_is_seq(sbi, devi, blkstart)) { in __f2fs_issue_discard_zone()
1854 devi, sbi->s_ndevs ? FDEV(devi).path : "", in __f2fs_issue_discard_zone()
Df2fs.h4208 static inline bool f2fs_blkz_is_seq(struct f2fs_sb_info *sbi, int devi, in f2fs_blkz_is_seq() argument
4213 return test_bit(zno, FDEV(devi).blkz_seq); in f2fs_blkz_is_seq()