Searched refs:bt_bdev (Results 1 – 15 of 15) sorted by relevance
| /linux/fs/xfs/ |
| H A D | xfs_verify_media.c | 186 ASSERT(BBTOB(bbcount) >= bdev_logical_block_size(btp->bt_bdev)); in xfs_verify_iosize() 188 return clamp(iosize, bdev_logical_block_size(btp->bt_bdev), in xfs_verify_iosize() 221 trace_xfs_verify_media_error(mp, me, btp->bt_bdev->bd_dev, daddr, in xfs_verify_media_error() 283 if (mp->m_logdev_targp->bt_bdev != mp->m_ddev_targp->bt_bdev) in xfs_verify_media() 302 bdev_logical_block_size(btp->bt_bdev))) in xfs_verify_media() 334 trace_xfs_verify_media(mp, me, btp->bt_bdev->bd_dev, daddr, bbcount, in xfs_verify_media() 337 bio = bio_alloc(btp->bt_bdev, 1, REQ_OP_READ, GFP_KERNEL); in xfs_verify_media() 347 bio_reset(bio, btp->bt_bdev, REQ_OP_READ); in xfs_verify_media() 403 trace_xfs_verify_media_end(mp, me, btp->bt_bdev->bd_dev); in xfs_verify_media()
|
| H A D | xfs_discard.c | 128 __blkdev_issue_discard(btp->bt_bdev, in xfs_discard_extents() 471 struct block_device *bdev = mp->m_rtdev_targp->bt_bdev; in xfs_discard_rtdev_extents() 816 bdev_discard_granularity(mp->m_ddev_targp->bt_bdev); in xfs_ioc_trim() 828 bdev_max_discard_sectors(mp->m_rtdev_targp->bt_bdev)) in xfs_ioc_trim() 829 rt_bdev = mp->m_rtdev_targp->bt_bdev; in xfs_ioc_trim() 830 if (!bdev_max_discard_sectors(mp->m_ddev_targp->bt_bdev) && !rt_bdev) in xfs_ioc_trim() 866 if (bdev_max_discard_sectors(mp->m_ddev_targp->bt_bdev)) { in xfs_ioc_trim()
|
| H A D | xfs_buf.c | 1339 bio = bio_alloc(bp->b_target->bt_bdev, nr_vecs, xfs_buf_bio_op(bp), in xfs_buf_submit_bio() 1682 if (btp->bt_bdev != btp->bt_mount->m_super->s_bdev) in xfs_free_buftarg() 1698 min_bytes = bdev_atomic_write_unit_min_bytes(btp->bt_bdev); in xfs_configure_buftarg_atomic_writes() 1699 max_bytes = bdev_atomic_write_unit_max_bytes(btp->bt_bdev); in xfs_configure_buftarg_atomic_writes() 1725 if (btp->bt_bdev) { in xfs_configure_buftarg() 1728 error = bdev_validate_blocksize(btp->bt_bdev, sectorsize); in xfs_configure_buftarg() 1732 sectorsize, btp->bt_bdev, error); in xfs_configure_buftarg() 1736 if (bdev_can_atomic_write(btp->bt_bdev)) in xfs_configure_buftarg() 1806 btp->bt_bdev = file_bdev(bdev_file); in xfs_alloc_buftarg() 1807 btp->bt_dev = btp->bt_bdev->bd_dev; in xfs_alloc_buftarg() [all …]
|
| H A D | xfs_buf_mem.h | 15 return btp->bt_bdev == NULL; in xfs_buftarg_is_mem()
|
| H A D | xfs_buf.h | 98 struct block_device *bt_bdev; member 380 #define xfs_readonly_buftarg(buftarg) bdev_read_only((buftarg)->bt_bdev)
|
| H A D | xfs_zone_gc.c | 630 *is_seq = bdev_zone_is_seq(mp->m_rtdev_targp->bt_bdev, *daddr); in xfs_zone_gc_alloc_blocks() 666 struct block_device *bdev = mp->m_rtdev_targp->bt_bdev; in xfs_zone_gc_start_chunk() 949 bio_init(&bio, rtg_mount(rtg)->m_rtdev_targp->bt_bdev, NULL, 0, in xfs_zone_gc_reset_sync() 968 if (blkdev_issue_flush(data->mp->m_rtdev_targp->bt_bdev) < 0) { in xfs_zone_gc_reset_zones() 983 bio = bio_alloc_bioset(rtg_mount(rtg)->m_rtdev_targp->bt_bdev, in xfs_zone_gc_reset_zones()
|
| H A D | xfs_super.c | 380 bdev_is_partition(mp->m_ddev_targp->bt_bdev)) { in xfs_setup_dax_always() 445 blkdev_issue_flush(mp->m_logdev_targp->bt_bdev); in xfs_shutdown_devices() 446 invalidate_bdev(mp->m_logdev_targp->bt_bdev); in xfs_shutdown_devices() 449 blkdev_issue_flush(mp->m_rtdev_targp->bt_bdev); in xfs_shutdown_devices() 450 invalidate_bdev(mp->m_rtdev_targp->bt_bdev); in xfs_shutdown_devices() 452 blkdev_issue_flush(mp->m_ddev_targp->bt_bdev); in xfs_shutdown_devices() 453 invalidate_bdev(mp->m_ddev_targp->bt_bdev); in xfs_shutdown_devices()
|
| H A D | xfs_buf_mem.c | 91 btp->bt_bdev = NULL; /* in-memory buftargs have no bdev */ in xmbuf_alloc()
|
| H A D | xfs_zone_alloc.c | 763 *is_seq = bdev_zone_is_seq(mp->m_rtdev_targp->bt_bdev, *sector); in xfs_zone_alloc_blocks() 990 struct block_device *bdev = mp->m_rtdev_targp->bt_bdev; in xfs_query_write_pointer() 1152 struct block_device *bdev = mp->m_rtdev_targp->bt_bdev; in xfs_calc_open_zones()
|
| H A D | xfs_file.c | 154 error = blkdev_issue_flush(mp->m_rtdev_targp->bt_bdev); in xfs_file_fsync() 156 error = blkdev_issue_flush(mp->m_ddev_targp->bt_bdev); in xfs_file_fsync() 177 err2 = blkdev_issue_flush(mp->m_ddev_targp->bt_bdev); in xfs_file_fsync()
|
| H A D | xfs_inode.h | 613 if (bdev_stable_writes(xfs_inode_buftarg(ip)->bt_bdev)) in xfs_update_stable_writes()
|
| H A D | xfs_ioctl.c | 1051 invalidate_bdev(mp->m_ddev_targp->bt_bdev); in xfs_ioc_setlabel() 1053 invalidate_bdev(mp->m_rtdev_targp->bt_bdev); in xfs_ioc_setlabel()
|
| H A D | xfs_iomap.c | 149 iomap->bdev = target->bt_bdev; in xfs_bmbt_to_iomap() 182 iomap->bdev = target->bt_bdev; in xfs_hole_to_iomap() 1082 iomap->bdev = ip->i_mount->m_rtdev_targp->bt_bdev; in xfs_zoned_direct_write_iomap_begin()
|
| H A D | xfs_log.c | 1577 bio_init(&iclog->ic_bio, log->l_targ->bt_bdev, iclog->ic_bvec, in xlog_write_iclog() 1598 blkdev_issue_flush(log->l_mp->m_ddev_targp->bt_bdev)) in xlog_write_iclog()
|
| H A D | xfs_log_recover.c | 140 error = xfs_rw_bdev(log->l_targ->bt_bdev, log->l_logBBstart + blk_no, in xlog_do_io()
|