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>
Wed, 27 Sep 2017 19:52:50 +0000 (13:52 -0600)
commitf32dc5e4057b76cf262f5a3f86ef3b7fb19989e0
tree690c1f59d83d13bd13e8dbf8bdd7fe5148808817
parente055189224d2ad6119f56b11527549d86e0f0861
buffer: grow_dev_page() should use __GFP_NOFAIL for all cases

We currently it 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.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/buffer.c