]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: don't check for failure from mempool_alloc()
authorNeilBrown <neilb@suse.com>
Sat, 15 Apr 2017 18:55:41 +0000 (20:55 +0200)
committerJens Axboe <axboe@fb.com>
Sun, 16 Apr 2017 16:06:25 +0000 (10:06 -0600)
commit7846fa487ac300c8b64a38a601a4244c5a6397d4
tree5f406c62e83b94f0b50f0c5ad6d117e0bec83f72
parent36edf531d3d76441ecacf4f3269b74d3ab81d0e4
lightnvm: don't check for failure from mempool_alloc()

mempool_alloc() cannot fail if the gfp flags allow it to
sleep, and both GFP_KERNEL and GFP_NOIO allows for sleeping.

So rrpc_move_valid_pages() and rrpc_make_rq() don't need to
test the return value.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Matias Bjørling <matias@cnexlabs.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/rrpc.c