OSDN Git Service

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)
commit66231ad3e2886ba99fbf440cea44cab547e5163f
treea9b22759440fd523b943f49892f3f7e166cf3701
parentb5d013bc09e9e76df9cdc85c2598486ba9a5b9b6
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