]> git.baikalelectronics.ru Git - kernel.git/commit
block: null_blk: fix 'Invalid parameters' when loading module
authorMing Lei <ming.lei@redhat.com>
Tue, 6 Mar 2018 04:07:13 +0000 (12:07 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 6 Mar 2018 17:35:09 +0000 (10:35 -0700)
commitda841158cad8ceed7db3d9f4bb31db10f7b7269e
treea9b22759440fd523b943f49892f3f7e166cf3701
parentd6ceff187fa87ca882b2f27d6604582fb37def70
block: null_blk: fix 'Invalid parameters' when loading module

On ARM64, the default page size has been 64K on some distributions, and
we should allow ARM64 people to play null_blk.

This patch fixes the issue by extend page bitmap size for supporting
other non-4KB PAGE_SIZE.

Cc: Bart Van Assche <Bart.VanAssche@wdc.com>
Cc: Shaohua Li <shli@kernel.org>
Cc: Kyungchan Koh <kkc6196@fb.com>,
Cc: weiping zhang <zhangweiping@didichuxing.com>
Cc: Yi Zhang <yi.zhang@redhat.com>
Reported-by: Yi Zhang <yi.zhang@redhat.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk.c