summaryrefslogtreecommitdiffstats
path: root/fs/btrfs
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2024-10-29 15:19:37 +0100
committerJens Axboe <axboe@kernel.dk>2024-10-29 16:15:00 +0100
commit2f5a65ef30a636d5030917eebd283ac447a212af (patch)
treeb28320d8f261c41868ccaf7bcca173b3d2e7e50d /fs/btrfs
parentiov_iter: don't require contiguous pages in iov_iter_extract_bvec_pages (diff)
downloadlinux-2f5a65ef30a636d5030917eebd283ac447a212af.tar.xz
linux-2f5a65ef30a636d5030917eebd283ac447a212af.zip
block: add a bdev_limits helper
Add a helper to get the queue_limits from the bdev without having to poke into the request_queue. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: John Garry <john.g.garry@oracle.com> Link: https://lore.kernel.org/r/20241029141937.249920-1-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/zoned.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/btrfs/zoned.c b/fs/btrfs/zoned.c
index 69d03feea4e0..46b9386957e6 100644
--- a/fs/btrfs/zoned.c
+++ b/fs/btrfs/zoned.c
@@ -707,11 +707,8 @@ int btrfs_check_zoned_mode(struct btrfs_fs_info *fs_info)
* zoned mode. In this case, we don't have a valid max zone
* append size.
*/
- if (bdev_is_zoned(device->bdev)) {
- blk_stack_limits(lim,
- &bdev_get_queue(device->bdev)->limits,
- 0);
- }
+ if (bdev_is_zoned(device->bdev))
+ blk_stack_limits(lim, bdev_limits(device->bdev), 0);
}
/*