summaryrefslogtreecommitdiff
path: root/fs/btrfs/tree-defrag.c
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2021-06-01 13:40:36 +1000
committerDave Chinner <david@fromorbit.com>2021-06-01 13:40:36 +1000
commit02c5117386884e06b6e78b72288f1e0af4320dc1 (patch)
treec03f3d5f2477d8f359a799b8001e2e8ee54bc0d7 /fs/btrfs/tree-defrag.c
parentc9fa563072e13337713a441cf30171feb4e96e6d (diff)
downloadlinux-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