buffer: have alloc_page_buffers() use __GFP_NOFAIL
authorJens Axboe <axboe@kernel.dk>
Wed, 27 Sep 2017 11:40:16 +0000 (05:40 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 3 Oct 2017 14:38:17 +0000 (08:38 -0600)
commit640ab98fb3629c0f8417b9b2532eca596495f3bb
tree59f6d84e07327e6b94473bcd66e7366582b7f85b
parent7beb2f845b715cb98584cf630e9a9d5b05501166
buffer: have alloc_page_buffers() use __GFP_NOFAIL

Instead of adding weird retry logic in that function, utilize
__GFP_NOFAIL to ensure that the vm takes care of handling any
potential retries appropriately. This means we don't have to
call free_more_memory() from here.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bitmap.c
fs/buffer.c
fs/ntfs/aops.c
fs/ntfs/mft.c
include/linux/buffer_head.h