rbd: remove VLA usage
authorKyle Spiers <kyle@spiers.me>
Sat, 17 Mar 2018 16:44:01 +0000 (09:44 -0700)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 2 Apr 2018 08:12:50 +0000 (10:12 +0200)
commit08a79102aa373e03ce704621fd84567605214465
treeadac761d483b00e4beabf0b1e108c8d60d196860
parentf6870cc9a36623d1dcb0aceade9e8a4785a4283a
rbd: remove VLA usage

As part of the effort to remove VLAs from the kernel[1], this moves
the literal values into the stack array calculation instead of using a
variable for the sizing. The resulting size can be found from
sizeof(buf).

[1] https://lkml.org/lkml/2018/3/7/621

Signed-off-by: Kyle Spiers <kyle@spiers.me>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
drivers/block/rbd.c