]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcdf189572c67cd7e3d9d2d7952431d2cef388851
tree376b95f0ed77b604cc4fe226038c86dbb1ea2b7b
parent174f988f3b33a9a6939719761615c24a4d2b65af
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