btrfs: introduce btrfs_alloc_folio_array()
[linux-2.6-block.git] / fs / btrfs / extent_io.h
index 818431b37124c059896bbd69b6086713825bc79d..c81a9b546c9f8e5c79bb81db9a1ce364abcf3a53 100644 (file)
@@ -360,6 +360,8 @@ void btrfs_clear_buffer_dirty(struct btrfs_trans_handle *trans,
 
 int btrfs_alloc_page_array(unsigned int nr_pages, struct page **page_array,
                           gfp_t extra_gfp);
+int btrfs_alloc_folio_array(unsigned int nr_folios, struct folio **folio_array,
+                           gfp_t extra_gfp);
 
 #ifdef CONFIG_BTRFS_FS_RUN_SANITY_TESTS
 bool find_lock_delalloc_range(struct inode *inode,