]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 27 Aug 2018 14:40:05 +0000 (16:40 +0200)
commit9a7e1b43dd7a658c98b9325fdcc6a78083961d7f
tree7700e195ca3349a9e9dc84ff6889a8a9176524fc
parent3d89a7271d5550eacb1b74c377004ebfbc3511a7
block: null_blk: fix 'Invalid parameters' when loading module

BugLink: http://bugs.launchpad.net/bugs/1786352
[ Upstream commit 66231ad3e2886ba99fbf440cea44cab547e5163f ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/block/null_blk.c