btrfs: refactor alloc_extent_buffer() to allocate-then-attach method
[sfrench/cifs-2.6.git] / fs / btrfs / extent_io.h
index c2c6bfba63c0365ed438f341657f3bdf6b123ca4..c73d53c22ec516dfd357c60fc62f33a1f032fcd9 100644 (file)
@@ -302,7 +302,8 @@ int extent_invalidate_folio(struct extent_io_tree *tree,
 void btrfs_clear_buffer_dirty(struct btrfs_trans_handle *trans,
                              struct extent_buffer *buf);
 
-int btrfs_alloc_page_array(unsigned int nr_pages, struct page **page_array);
+int btrfs_alloc_page_array(unsigned int nr_pages, struct page **page_array,
+                          gfp_t extra_gfp);
 
 #ifdef CONFIG_BTRFS_FS_RUN_SANITY_TESTS
 bool find_lock_delalloc_range(struct inode *inode,