diff options
author | John Garry <john.g.garry@oracle.com> | 2024-11-18 11:50:14 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-11-19 18:30:02 +0100 |
commit | d00eea91deaf363f83599532cb49fa528ab8e00e (patch) | |
tree | a0e245909d60724a6a71bf575dd0b635a7729ad3 /mm/pgalloc-track.h | |
parent | ublk: fix error code for unsupported command (diff) | |
download | linux-d00eea91deaf363f83599532cb49fa528ab8e00e.tar.xz linux-d00eea91deaf363f83599532cb49fa528ab8e00e.zip |
block: Add extra checks in blk_validate_atomic_write_limits()
It is so far expected that the limits passed are valid.
In future atomic writes will be supported for stacked block devices, and
calculating the limits there will be complicated, so add extra sanity
checks to ensure that the values are always valid.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20241118105018.1870052-2-john.g.garry@oracle.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'mm/pgalloc-track.h')
0 files changed, 0 insertions, 0 deletions