buffer: grow_dev_page() should use __GFP_NOFAIL for all cases
authorJens Axboe <axboe@kernel.dk>
Wed, 27 Sep 2017 11:45:36 +0000 (05:45 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 3 Oct 2017 14:38:17 +0000 (08:38 -0600)
commit94dc24c0c59a224a093f110060d01c2c620f275a
tree13d901e901caf86342e4e47dabfeb5b5a4f5f7dc
parent640ab98fb3629c0f8417b9b2532eca596495f3bb
buffer: grow_dev_page() should use __GFP_NOFAIL for all cases

We currently use it for find_or_create_page(), which means that it
cannot fail. Ensure we also pass in 'retry == true' to
alloc_page_buffers(), which also ensure that it cannot fail.

After this, there are no failure cases in grow_dev_page() that
occur because of a failed memory allocation.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/buffer.c