mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
btrfs: rename the extra_gfp parameter of btrfs_alloc_page_array()
There is only one caller utilizing the @extra_gfp parameter, alloc_eb_folio_array(). And in that case the extra_gfp is only assigned to __GFP_NOFAIL. Rename the @extra_gfp parameter to @nofail to indicate that. Reviewed-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: Qu Wenruo <wqu@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
@@ -1051,7 +1051,7 @@ static int alloc_rbio_pages(struct btrfs_raid_bio *rbio)
|
||||
{
|
||||
int ret;
|
||||
|
||||
ret = btrfs_alloc_page_array(rbio->nr_pages, rbio->stripe_pages, 0);
|
||||
ret = btrfs_alloc_page_array(rbio->nr_pages, rbio->stripe_pages, false);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
/* Mapping all sectors */
|
||||
@@ -1066,7 +1066,7 @@ static int alloc_rbio_parity_pages(struct btrfs_raid_bio *rbio)
|
||||
int ret;
|
||||
|
||||
ret = btrfs_alloc_page_array(rbio->nr_pages - data_pages,
|
||||
rbio->stripe_pages + data_pages, 0);
|
||||
rbio->stripe_pages + data_pages, false);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
@@ -1640,7 +1640,7 @@ static int alloc_rbio_data_pages(struct btrfs_raid_bio *rbio)
|
||||
const int data_pages = rbio->nr_data * rbio->stripe_npages;
|
||||
int ret;
|
||||
|
||||
ret = btrfs_alloc_page_array(data_pages, rbio->stripe_pages, 0);
|
||||
ret = btrfs_alloc_page_array(data_pages, rbio->stripe_pages, false);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user