Dave Chinner 02c5117386 xfs: merge _xfs_buf_get_pages()
Only called from one place now, so merge it into
xfs_buf_alloc_pages(). Because page array allocation is dependent on
bp->b_pages being null, always ensure that when the pages array is
freed we always set bp->b_pages to null.

Also convert the page array to use kmalloc() rather than
kmem_alloc() so we can use the gfp flags we've already calculated
for the allocation context instead of hard coding KM_NOFS semantics.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
2021-06-01 13:40:36 +10:00
..
2021-05-06 23:46:46 -07:00
2020-09-06 18:05:51 -07:00
2020-09-15 20:52:41 -07:00
2021-01-24 14:43:46 +01:00
2021-01-24 14:27:20 +01:00
2021-02-26 15:49:51 -07:00
2021-04-15 09:35:51 -07:00
2021-06-01 13:40:36 +10:00
2021-04-15 09:35:51 -07:00
2021-04-29 10:43:51 -07:00
2021-04-12 15:04:29 +02:00
2021-04-12 15:04:29 +02:00
2021-04-29 10:43:51 -07:00
2021-04-12 15:04:29 +02:00
2021-04-15 09:35:51 -07:00
2021-04-29 10:43:51 -07:00
2021-01-24 14:43:46 +01:00
2021-01-24 14:43:46 +01:00
2020-12-16 16:07:34 -08:00
2021-04-29 10:43:51 -07:00
2021-01-24 14:43:46 +01:00
2020-12-16 16:07:34 -08:00