commit 984391de59a1d6918ac9ba63c095decbcfc85c71 Author: Greg Kroah-Hartman Date: Tue Feb 18 09:34:42 2025 +0100 Linux 6.12.15 Signed-off-by: Greg Kroah-Hartman commit 681ee24cd5a2e4cafca449fecbcddba4fbdb080d Author: Darrick J. Wong Date: Mon Dec 2 10:57:36 2024 -0800 xfs: don't lose solo dquot update transactions commit 07137e925fa951646325762bda6bd2503dfe64c6 upstream. Quota counter updates are tracked via incore objects which hang off the xfs_trans object. These changes are then turned into dirty log items in xfs_trans_apply_dquot_deltas just prior to commiting the log items to the CIL. However, updating the incore deltas do not cause XFS_TRANS_DIRTY to be set on the transaction. In other words, a pure quota counter update will be silently discarded if there are no other dirty log items attached to the transaction. This is currently not the case anywhere in the filesystem because quota updates always dirty at least one other metadata item, but a subsequent bug fix will add dquot log item precommits, so we actually need a dirty dquot log item prior to xfs_trans_run_precommits. Also let's not leave a logic bomb. Cc: # v2.6.35 Fixes: 0924378a689ccb ("xfs: split out iclog writing from xfs_trans_commit()") Signed-off-by: "Darrick J. Wong" Reviewed-by: Christoph Hellwig Signed-off-by: Greg Kroah-Hartman