]> git.baikalelectronics.ru Git - kernel.git/commit
block: Add a helper to validate the block size
authorXie Yongji <xieyongji@bytedance.com>
Tue, 26 Oct 2021 14:40:12 +0000 (22:40 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 27 Oct 2021 20:15:51 +0000 (14:15 -0600)
commit5b81929c3c2d72959b505d292e086d9752be73b0
tree628aa72ad9f68afcebe377f59de2cc847e624fc2
parentfad234f33a833174c4fd98cde64ed8654d59217e
block: Add a helper to validate the block size

There are some duplicated codes to validate the block
size in block drivers. This limitation actually comes
from block layer, so this patch tries to add a new block
layer helper for that.

Signed-off-by: Xie Yongji <xieyongji@bytedance.com>
Link: https://lore.kernel.org/r/20211026144015.188-2-xieyongji@bytedance.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/blkdev.h