diff options
author | Dave Chinner <dchinner@redhat.com> | 2021-06-01 13:40:36 +1000 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2021-06-01 13:40:36 +1000 |
commit | 02c5117386884e06b6e78b72288f1e0af4320dc1 (patch) | |
tree | c03f3d5f2477d8f359a799b8001e2e8ee54bc0d7 /fs/btrfs/tree-defrag.c | |
parent | c9fa563072e13337713a441cf30171feb4e96e6d (diff) | |
download | linux-02c5117386884e06b6e78b72288f1e0af4320dc1.tar.gz linux-02c5117386884e06b6e78b72288f1e0af4320dc1.tar.bz2 linux-02c5117386884e06b6e78b72288f1e0af4320dc1.zip |
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>
Diffstat (limited to 'fs/btrfs/tree-defrag.c')
0 files changed, 0 insertions, 0 deletions