Lines Matching refs:bdev
559 struct block_device *bdev) in __submit_flush_wait() argument
569 bio_set_dev(bio, bdev); in __submit_flush_wait()
573 trace_f2fs_issue_flush(bdev, test_opt(sbi, NOBARRIER), in __submit_flush_wait()
589 ret = __submit_flush_wait(sbi, FDEV(i).bdev); in submit_flush_wait()
764 ret = __submit_flush_wait(sbi, FDEV(i).bdev); in f2fs_flush_device_cache()
935 struct block_device *bdev, block_t lstart, in __create_discard_cmd() argument
948 dc->bdev = bdev; in __create_discard_cmd()
967 struct block_device *bdev, block_t lstart, in __attach_discard_cmd() argument
975 dc = __create_discard_cmd(sbi, bdev, lstart, start, len); in __attach_discard_cmd()
1004 trace_f2fs_remove_discard(dc->bdev, dc->start, dc->len); in __remove_discard_cmd()
1111 struct block_device *bdev, block_t lstart,
1119 struct block_device *bdev = dc->bdev; in __submit_discard_cmd() local
1120 struct request_queue *q = bdev_get_queue(bdev); in __submit_discard_cmd()
1136 trace_f2fs_issue_discard(bdev, dc->start, dc->len); in __submit_discard_cmd()
1166 err = __blkdev_issue_discard(bdev, in __submit_discard_cmd()
1217 __update_discard_tree_range(sbi, bdev, lstart, start, len); in __submit_discard_cmd()
1222 struct block_device *bdev, block_t lstart, in __insert_discard_tree() argument
1242 dc = __attach_discard_cmd(sbi, bdev, lstart, start, len, parent, in __insert_discard_tree()
1279 __insert_discard_tree(sbi, dc->bdev, blkaddr + 1, in __punch_discard_cmd()
1294 struct block_device *bdev, block_t lstart, in __update_discard_tree_range() argument
1302 struct request_queue *q = bdev_get_queue(bdev); in __update_discard_tree_range()
1345 prev_dc->bdev == bdev && in __update_discard_tree_range()
1357 next_dc->bdev == bdev && in __update_discard_tree_range()
1371 __insert_discard_tree(sbi, bdev, di.lstart, di.start, in __update_discard_tree_range()
1385 struct block_device *bdev, block_t blkstart, block_t blklen) in __queue_discard_cmd() argument
1389 if (!f2fs_bdev_support_discard(bdev)) in __queue_discard_cmd()
1392 trace_f2fs_queue_discard(bdev, blkstart, blklen); in __queue_discard_cmd()
1400 __update_discard_tree_range(sbi, bdev, lblkstart, blkstart, blklen); in __queue_discard_cmd()
1755 struct block_device *bdev, block_t blkstart, block_t blklen) in __f2fs_issue_discard_zone() argument
1776 if (sector & (bdev_zone_sectors(bdev) - 1) || in __f2fs_issue_discard_zone()
1777 nr_sects != bdev_zone_sectors(bdev)) { in __f2fs_issue_discard_zone()
1783 trace_f2fs_issue_reset_zone(bdev, blkstart); in __f2fs_issue_discard_zone()
1784 return blkdev_zone_mgmt(bdev, REQ_OP_ZONE_RESET, in __f2fs_issue_discard_zone()
1789 return __queue_discard_cmd(sbi, bdev, lblkstart, blklen); in __f2fs_issue_discard_zone()
1794 struct block_device *bdev, block_t blkstart, block_t blklen) in __issue_discard_async() argument
1797 if (f2fs_sb_has_blkzoned(sbi) && bdev_is_zoned(bdev)) in __issue_discard_async()
1798 return __f2fs_issue_discard_zone(sbi, bdev, blkstart, blklen); in __issue_discard_async()
1800 return __queue_discard_cmd(sbi, bdev, blkstart, blklen); in __issue_discard_async()
1807 struct block_device *bdev; in f2fs_issue_discard() local
1813 bdev = f2fs_target_device(sbi, blkstart, NULL); in f2fs_issue_discard()
1820 if (bdev2 != bdev) { in f2fs_issue_discard()
1821 err = __issue_discard_async(sbi, bdev, in f2fs_issue_discard()
1825 bdev = bdev2; in f2fs_issue_discard()
1839 err = __issue_discard_async(sbi, bdev, start, len); in f2fs_issue_discard()