diff options
| author | Darrick J. Wong <djwong@kernel.org> | 2026-09-01 22:49:01 -0700 |
|---|---|---|
| committer | Carlos Maiolino <cem@kernel.org> | 2026-09-07 07:50:36 +0200 |
| commit | 0fc67528f54bb91dac22093749b425207c0fc245 (patch) | |
| tree | 85d349168b9a06823572dcc5dd2fb5d8f55dac2a /scripts/Makefile.thinlto | |
| parent | 8c71ad4d4f3e20c30b663bd292526fcbc4d3913f (diff) | |
| download | linux-stable-0fc67528f54bb91dac22093749b425207c0fc245.tar.gz linux-stable-0fc67528f54bb91dac22093749b425207c0fc245.zip | |
xfs: truncate quota file correctly when repairing quota file
LOLLM noticed that xrep_quota_data_fork screws up the unit handling when
it computes the offset at which to start truncating the quota file.
max_dquid_off is the file block offset containing the highest possible
dquot, and xfs_bunmapi_range takes the starting file block offset.
Therefore, it makes no sense to multiply max_dquid_off by the blocksize;
all we need to do is start truncating at the next block.
Cc: stable@vger.kernel.org # v6.8
Fixes: a5b91555403e3a ("xfs: repair quotas")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Assisted-by: LOLLM # finding obvious bugs
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
