aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
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 /tools/perf/scripts/python/export-to-postgresql.py
parentxfs: use alloc_pages_bulk_array() for buffers (diff)
downloadlinux-dev-02c5117386884e06b6e78b72288f1e0af4320dc1.tar.xz
linux-dev-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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions