OSDN Git Service

block: add a helper function for dio alignment
authorKeith Busch <kbusch@kernel.org>
Fri, 10 Jun 2022 19:58:24 +0000 (12:58 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 27 Jun 2022 12:29:11 +0000 (06:29 -0600)
commit37fee2e42ebbc33e5b7b6944979792bd9aa09e34
treeb892f2d4dd32e6312a427d3211aef4a3a619e15a
parent4a2dcc35911324d6fcde09b1760cf4f2962699ef
block: add a helper function for dio alignment

This will make it easier to add more complex acceptable alignment
criteria in the future.

Signed-off-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20220610195830.3574005-6-kbusch@fb.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/fops.c