]> www.infradead.org Git - users/hch/xfs.git/commit
block: Add a public bdev_zone_is_seq() helper
authorDamien Le Moal <dlemoal@kernel.org>
Fri, 1 Nov 2024 01:33:52 +0000 (10:33 +0900)
committerChristoph Hellwig <hch@lst.de>
Tue, 5 Nov 2024 08:26:38 +0000 (09:26 +0100)
commitd83d6f0be53e0a5ce604977d9bc9a5f2af5ab0ee
tree4286580fb6790f7e1bff6005dc9e08d4b806cc07
parent681a4e3ee529e64b6f51efc5826f4d09726c3b8f
block: Add a public bdev_zone_is_seq() helper

Turn the private disk_zone_is_conv() function in blk-zoned.c into a
public and documented bdev_zone_is_seq() helper with the inverse
polarity of the original function, also adding a check for non-zoned
devices so that all file systems can use the helper, even with a regular
block device.

Suggested-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
block/blk-zoned.c
include/linux/blkdev.h