aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tree-log.c
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2025-07-01 10:39:44 +0000
committerDavid Sterba <[email protected]>2025-07-21 22:07:08 +0000
commite41c75ca3189341e76e6af64b857c05b68a1d7db (patch)
tree6f80a3bacb7258562e31874473a1eb890f198c06 /fs/btrfs/tree-log.c
parentbtrfs: restrict writes to opened btrfs devices (diff)
downloadkernel-e41c75ca3189341e76e6af64b857c05b68a1d7db.tar.gz
kernel-e41c75ca3189341e76e6af64b857c05b68a1d7db.zip
btrfs: qgroup: set quota enabled bit if quota disable fails flushing reservations
Before waiting for the rescan worker to finish and flushing reservations, we clear the BTRFS_FS_QUOTA_ENABLED flag from fs_info. If we fail flushing reservations we leave with the flag not set which is not correct since quotas are still enabled - we must set back the flag on error paths, such as when we fail to start a transaction, except for error paths that abort a transaction. The reservation flushing happens very early before we do any operation that actually disables quotas and before we start a transaction, so set back BTRFS_FS_QUOTA_ENABLED if it fails. Fixes: af0e2aab3b70 ("btrfs: qgroup: flush reservations during quota disable") CC: [email protected] # 6.12+ Reviewed-by: Qu Wenruo <[email protected]> Signed-off-by: Filipe Manana <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/tree-log.c')
0 files changed, 0 insertions, 0 deletions