linux-next: manual merge of the fs-next tree with the mm tree
From: Mark Brown
Date: Wed Dec 02 2026 - 08:00:19 EST
Hi all,
Today's linux-next merge of the fs-next tree got a conflict in:
fs/super.c
between commit:
7dae269d04637 ("mm/vmscan: fix legacy memcg reclaim deadlock against filesystem freeze")
from the mm tree and commit:
e4344c5966aec ("quota: really wait for the thaw in quotactl_block()")
from the fs-next tree.
I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging. You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.
diff --cc fs/super.c
index 74d3be78ee961,4e68e7cac3426..0000000000000
--- a/fs/super.c
+++ b/fs/super.c
@@@ -2251,11 -2552,13 +2556,14 @@@ retry
/* All writers are done so after syncing there won't be dirty data */
ret = sync_filesystem(sb);
+ /* An error while we waited for the writers means nothing was synced. */
+ if (!ret && sb_emergency_ro(sb))
+ ret = -EROFS;
if (ret) {
sb->s_writers.frozen = SB_UNFROZEN;
+ atomic_dec(&sb_nr_freezing);
sb_freeze_unlock(sb, SB_FREEZE_PAGEFAULT);
- wake_up_var(&sb->s_writers.frozen);
+ sb_freeze_wake(sb);
deactivate_locked_super(sb);
return ret;
}
@@@ -2270,9 -2573,8 +2578,9 @@@
printk(KERN_ERR
"VFS:Filesystem freeze failed\n");
sb->s_writers.frozen = SB_UNFROZEN;
+ atomic_dec(&sb_nr_freezing);
sb_freeze_unlock(sb, SB_FREEZE_FS);
- wake_up_var(&sb->s_writers.frozen);
+ sb_freeze_wake(sb);
deactivate_locked_super(sb);
return ret;
}
@@@ -2284,8 -2586,7 +2592,8 @@@
WARN_ON_ONCE(freeze_inc(sb, who) > 1);
sb->s_writers.freeze_owner = freeze_owner;
sb->s_writers.frozen = SB_FREEZE_COMPLETE;
+ atomic_dec(&sb_nr_freezing);
- wake_up_var(&sb->s_writers.frozen);
+ sb_freeze_wake(sb);
lockdep_sb_freeze_release(sb);
super_unlock_excl(sb);
return 0;
Attachment:
signature.asc
Description: PGP signature