diff options
author | Darrick J. Wong <djwong@kernel.org> | 2024-02-22 12:30:54 -0800 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2024-02-22 12:30:54 -0800 |
commit | 5a3ab5849583217090e29299c7bee88b827c12d8 (patch) | |
tree | 27895c5804fdfdf1fd4d9163a4c9964bb644185c /fs/xfs/libxfs/xfs_fs.h | |
parent | ebd610fe82c1d2a94c6fe27cd04d5cf911b5e171 (diff) |
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 'fs/xfs/libxfs/xfs_fs.h')
0 files changed, 0 insertions, 0 deletions