]> Gentwo Git Trees - linux/.git/commit
xfs: make qi_dquots a 64-bit value
authorChristoph Hellwig <hch@lst.de>
Mon, 10 Nov 2025 13:22:54 +0000 (14:22 +0100)
committerCarlos Maiolino <cem@kernel.org>
Tue, 11 Nov 2025 10:45:57 +0000 (11:45 +0100)
commit005d5ae0c585e11d31df1e721c04f113a8281443
treeb302eac2c2a4be84ac6c526ae4aa3cab693b3537
parent204c8f77e8d4a3006f8abe40331f221a597ce608
xfs: make qi_dquots a 64-bit value

qi_dquots counts all quotas in the file system, which can be up to
3 * UINT_MAX and overflow a 32-bit counter, but can't be negative.
Make qi_dquots a uint64_t, and saturate the value to UINT_MAX for
userspace reporting.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_qm.h
fs/xfs/xfs_quotaops.c