]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
block: relax atomic write boundary vs chunk size check
authorJohn Garry <john.g.garry@oracle.com>
Mon, 15 Sep 2025 10:35:00 +0000 (10:35 +0000)
committerJens Axboe <axboe@kernel.dk>
Tue, 16 Sep 2025 18:29:10 +0000 (12:29 -0600)
commitda7b97ba0d219a14a83e9cc93f98b53939f12944
treed5b378333fdcacecf6a958f05dc18843e27311dc
parentf2d8c5a2f79c28569edf4948b611052253b5e99a
block: relax atomic write boundary vs chunk size check

blk_validate_atomic_write_limits() ensures that any boundary fits into
and is aligned to any chunk size.

However, it should also be possible to fit the chunk size into any
boundary. That check is already made in
blk_stack_atomic_writes_boundary_head().

Relax the check in blk_validate_atomic_write_limits() by reusing (and
renaming) blk_stack_atomic_writes_boundary_head().

Signed-off-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-settings.c