aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDave Chinner <[email protected]>2021-06-01 13:40:36 +1000
committerDave Chinner <[email protected]>2021-06-01 13:40:36 +1000
commit02c5117386884e06b6e78b72288f1e0af4320dc1 (patch)
treec03f3d5f2477d8f359a799b8001e2e8ee54bc0d7 /tools/perf/scripts/python
parentc9fa563072e13337713a441cf30171feb4e96e6d (diff)
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 <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions