]> www.infradead.org Git - users/hch/misc.git/commit
ext4: don't over-report free space or inodes in statvfs
authorTheodore Ts'o <tytso@mit.edu>
Fri, 14 Mar 2025 04:38:42 +0000 (00:38 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 20 Mar 2025 19:31:19 +0000 (15:31 -0400)
commitf87d3af7419307ae26e705a2b2db36140db367a2
treee316cddca42a89295324ff3a15faabe3513120f7
parent5f1cf94d80208f5baa203f10fa762d3f0b567ad8
ext4: don't over-report free space or inodes in statvfs

This fixes an analogus bug that was fixed in xfs in commit
4b8d867ca6e2 ("xfs: don't over-report free space or inodes in
statvfs") where statfs can report misleading / incorrect information
where project quota is enabled, and the free space is less than the
remaining quota.

This commit will resolve a test failure in generic/762 which tests for
this bug.

Cc: stable@kernel.org
Fixes: 689c958cbe6b ("ext4: add project quota support")
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
fs/ext4/super.c