Home
last modified time | relevance | path

Searched refs:bt_bdev (Results 1 – 18 of 18) sorted by relevance

/fs/xfs/
A Dxfs_discard.c129 error = __blkdev_issue_discard(btp->bt_bdev, in xfs_discard_extents()
484 struct block_device *bdev = mp->m_rtdev_targp->bt_bdev; in xfs_discard_rtdev_extents()
831 bdev_discard_granularity(mp->m_ddev_targp->bt_bdev); in xfs_ioc_trim()
843 bdev_max_discard_sectors(mp->m_rtdev_targp->bt_bdev)) in xfs_ioc_trim()
844 rt_bdev = mp->m_rtdev_targp->bt_bdev; in xfs_ioc_trim()
845 if (!bdev_max_discard_sectors(mp->m_ddev_targp->bt_bdev) && !rt_bdev) in xfs_ioc_trim()
881 if (bdev_max_discard_sectors(mp->m_ddev_targp->bt_bdev)) { in xfs_ioc_trim()
A Dxfs_buf.c1685 if (btp->bt_bdev != btp->bt_mount->m_super->s_bdev) in xfs_free_buftarg()
1701 min_bytes = bdev_atomic_write_unit_min_bytes(btp->bt_bdev); in xfs_configure_buftarg_atomic_writes()
1702 max_bytes = bdev_atomic_write_unit_max_bytes(btp->bt_bdev); in xfs_configure_buftarg_atomic_writes()
1727 ASSERT(btp->bt_bdev != NULL); in xfs_configure_buftarg()
1733 error = bdev_validate_blocksize(btp->bt_bdev, sectorsize); in xfs_configure_buftarg()
1737 sectorsize, btp->bt_bdev, error); in xfs_configure_buftarg()
1741 if (bdev_can_atomic_write(btp->bt_bdev)) in xfs_configure_buftarg()
1802 btp->bt_bdev = file_bdev(bdev_file); in xfs_alloc_buftarg()
1803 btp->bt_dev = btp->bt_bdev->bd_dev; in xfs_alloc_buftarg()
1811 error = sync_blockdev(btp->bt_bdev); in xfs_alloc_buftarg()
[all …]
A Dxfs_zone_gc.c658 *is_seq = bdev_zone_is_seq(mp->m_rtdev_targp->bt_bdev, *daddr); in xfs_zone_gc_alloc_blocks()
672 struct block_device *bdev = mp->m_rtdev_targp->bt_bdev; in xfs_zone_gc_start_chunk()
818 bio_reset(&chunk->bio, mp->m_rtdev_targp->bt_bdev, REQ_OP_WRITE); in xfs_zone_gc_write_chunk()
926 bio_init(&bio, rtg_mount(rtg)->m_rtdev_targp->bt_bdev, NULL, 0, in xfs_zone_gc_reset_sync()
942 if (blkdev_issue_flush(data->mp->m_rtdev_targp->bt_bdev) < 0) { in xfs_zone_gc_reset_zones()
957 bio = bio_alloc_bioset(rtg_mount(rtg)->m_rtdev_targp->bt_bdev, in xfs_zone_gc_reset_zones()
A Dxfs_buf_mem.h15 return btp->bt_bdev == NULL; in xfs_buftarg_is_mem()
A Dxfs_buf.h97 struct block_device *bt_bdev; member
377 #define xfs_readonly_buftarg(buftarg) bdev_read_only((buftarg)->bt_bdev)
A Dxfs_super.c367 bdev_is_partition(mp->m_ddev_targp->bt_bdev)) { in xfs_setup_dax_always()
432 blkdev_issue_flush(mp->m_logdev_targp->bt_bdev); in xfs_shutdown_devices()
433 invalidate_bdev(mp->m_logdev_targp->bt_bdev); in xfs_shutdown_devices()
436 blkdev_issue_flush(mp->m_rtdev_targp->bt_bdev); in xfs_shutdown_devices()
437 invalidate_bdev(mp->m_rtdev_targp->bt_bdev); in xfs_shutdown_devices()
439 blkdev_issue_flush(mp->m_ddev_targp->bt_bdev); in xfs_shutdown_devices()
440 invalidate_bdev(mp->m_ddev_targp->bt_bdev); in xfs_shutdown_devices()
A Dxfs_zone_alloc.c773 *is_seq = bdev_zone_is_seq(mp->m_rtdev_targp->bt_bdev, *sector); in xfs_zone_alloc_blocks()
1172 struct block_device *bdev = mp->m_rtdev_targp->bt_bdev; in xfs_calc_open_zones()
1297 if (bdev_is_zoned(bt->bt_bdev)) { in xfs_mount_zones()
1298 error = blkdev_report_zones(bt->bt_bdev, in xfs_mount_zones()
A Dxfs_buf_mem.c91 btp->bt_bdev = NULL; /* in-memory buftargs have no bdev */ in xmbuf_alloc()
A Dxfs_aops.c620 wpc->iomap.bdev = mp->m_rtdev_targp->bt_bdev; in xfs_zoned_map_blocks()
792 sis->bdev = xfs_inode_buftarg(ip)->bt_bdev; in xfs_vm_swap_activate()
A Dxfs_notify_failure.c168 u64 dev_len = bdev_nr_bytes(btp->bt_bdev); in xfs_dax_translate_range()
A Dxfs_file.c156 error = blkdev_issue_flush(mp->m_rtdev_targp->bt_bdev); in xfs_file_fsync()
158 error = blkdev_issue_flush(mp->m_ddev_targp->bt_bdev); in xfs_file_fsync()
181 err2 = blkdev_issue_flush(mp->m_ddev_targp->bt_bdev); in xfs_file_fsync()
A Dxfs_inode.h613 if (bdev_stable_writes(xfs_inode_buftarg(ip)->bt_bdev)) in xfs_update_stable_writes()
A Dxfs_ioctl.c1055 invalidate_bdev(mp->m_ddev_targp->bt_bdev); in xfs_ioc_setlabel()
1057 invalidate_bdev(mp->m_rtdev_targp->bt_bdev); in xfs_ioc_setlabel()
A Dxfs_iomap.c149 iomap->bdev = target->bt_bdev; in xfs_bmbt_to_iomap()
173 iomap->bdev = target->bt_bdev; in xfs_hole_to_iomap()
1073 iomap->bdev = ip->i_mount->m_rtdev_targp->bt_bdev; in xfs_zoned_direct_write_iomap_begin()
A Dxfs_log.c1646 bio_init(&iclog->ic_bio, log->l_targ->bt_bdev, iclog->ic_bvec, in xlog_write_iclog()
1667 blkdev_issue_flush(log->l_mp->m_ddev_targp->bt_bdev)) in xlog_write_iclog()
A Dxfs_iops.c582 struct block_device *bdev = target->bt_bdev; in xfs_report_dioalign()
A Dxfs_bmap_util.c59 return blkdev_issue_zeroout(xfs_inode_buftarg(ip)->bt_bdev, in xfs_zero_extent()
A Dxfs_log_recover.c140 error = xfs_rw_bdev(log->l_targ->bt_bdev, log->l_logBBstart + blk_no, in xlog_do_io()

Completed in 55 milliseconds