summaryrefslogtreecommitdiff
path: root/scripts/livepatch/init.c
diff options
context:
space:
mode:
authorAvi Weiss <thnkslprpt@gmail.com>2026-10-31 12:20:24 +0200
committerJens Axboe <axboe@kernel.dk>2026-11-03 07:09:12 -0700
commit2516f0413f8704a7370ef8a2eeae26c9bc438978 (patch)
treeb958e7721c6d5f089c2fcfd2d0d2f1978339b7d1 /scripts/livepatch/init.c
parentd734b6433b2fd248bc25a2ea1fa60c34b40ba15c (diff)
block: report the correct discard alignment in sysfs
disk_discard_alignment_show() reports the physical I/O alignment offset instead of the discard alignment. Devices can specify these offsets independently, so the discard_alignment sysfs attribute can report the wrong value. Use bdev_discard_alignment() for the whole-disk attribute, as is already done for partitions. Fixes: 4e1462ffe899 ("block: remove queue_discard_alignment") Signed-off-by: Avi Weiss <thnkslprpt@gmail.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Link: https://patch.msgid.link/20261031102023.3644494-2-thnkslprpt@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/livepatch/init.c')
0 files changed, 0 insertions, 0 deletions