Thread (24 messages) 24 messages, 3 authors, 2025-06-16

Re: [PATCH 01/10] block: introduce BLK_FEAT_WRITE_ZEROES_UNMAP to queue limits features

From: Zhang Yi <hidden>
Date: 2025-06-11 07:31:26
Also in: dm-devel, linux-ext4, linux-fsdevel, linux-nvme, linux-scsi, linux-xfs, lkml

On 2025/6/11 14:09, Christoph Hellwig wrote:
On Wed, Jun 04, 2025 at 10:08:41AM +0800, Zhang Yi wrote:
quoted
+static ssize_t queue_write_zeroes_unmap_show(struct gendisk *disk, char *page)
..
quoted
+static int queue_write_zeroes_unmap_store(struct gendisk *disk,
+		const char *page, size_t count, struct queue_limits *lim)
We're probably getting close to wanting macros for the sysfs
flags, similar to the one for the features (QUEUE_SYSFS_FEATURE).

No need to do this now, just thinking along.
Yes.
quoted
+/* supports unmap write zeroes command */
+#define BLK_FEAT_WRITE_ZEROES_UNMAP	((__force blk_features_t)(1u << 17))

Should this be exposed through sysfs as a read-only value?
Uh, are you suggesting adding another sysfs interface to expose
this feature?
Otherwise looks good:

Reviewed-by: Christoph Hellwig <hch@lst.de>
Thanks,
Yi.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help