diff options
author | 2024-02-22 12:30:54 -0800 | |
---|---|---|
committer | 2024-02-22 12:30:54 -0800 | |
commit | 5a3ab5849583217090e29299c7bee88b827c12d8 (patch) | |
tree | 27895c5804fdfdf1fd4d9163a4c9964bb644185c /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | xfs: create a helper to count per-device inode block usage (diff) | |
download | wireguard-linux-5a3ab5849583217090e29299c7bee88b827c12d8.tar.xz wireguard-linux-5a3ab5849583217090e29299c7bee88b827c12d8.zip |
xfs: create a sparse load xfarray function
Create a new method to load an xfarray element from the xfile, but with
a twist. If we've never stored to the array index, zero the caller's
buffer. This will facilitate RMWs updates of records in a sparse array
without fuss, since the sparse xfarray convention is that uninitialized
array elements default to zeroes.
This is a separate patch to reduce the size of the upcoming quotacheck
patch.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions