]> git.itanic.dy.fi Git - linux-stable/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)
commit570b1cac477643cbf01a45fa5d018430a1fddbce
tree628aa72ad9f68afcebe377f59de2cc847e624fc2
parentc7b84d4226adaa601e9f73574ef123d1500cf712
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