null_blk: use ppa_cache pool
authorMatias Bjørling <m@bjorling.me>
Thu, 19 Nov 2015 11:50:08 +0000 (12:50 +0100)
committerJens Axboe <axboe@fb.com>
Thu, 19 Nov 2015 22:15:53 +0000 (15:15 -0700)
commit6bb9535bc3f59194a0ae17b17ca71aecd0f7e3a2
tree376b95f0ed77b604cc4fe226038c86dbb1ea2b7b
parent6824c5ef5e8900e61ce8ed40885cacc1c9301c14
null_blk: use ppa_cache pool

Instead of using a page pool, we can save memory by only allocating room
for 64 entries for the ppa command. Introduce a ppa_cache to allocate only
the required memory for the ppa list.

Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/null_blk.c