linux-next: build failure after merge of the btrfs tree
Hi all,
After merging the btrfs tree, today's linux-next build (x86_64 allmodconfig) failed like this:
fs/btrfs/super.c: In function 'btrfs_reconfigure_for_mount':fs/btrfs/super.c:2011:56: error: suggest parentheses around '&&' within '||' [-Werror=parentheses]
2011 | if (!fc->oldapi || !(fc->sb_flags & SB_RDONLY) && (mnt->mnt_sb->s_flags & SB_RDONLY))
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Caused by commit
4642e430c55b ("btrfs: fix mount failure due to remount races")
I have used the btrfs tree from next-20241023 for today.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 8 lines · Stephen Rothwell
Hi all,
After merging the btrfs tree, today's linux-next build (
x86_64allmodconfig) failed like this:
fs/btrfs/super.c: In function 'btrfs_reconfigure_for_mount':fs/btrfs/super.c:2011:56: error: suggest parentheses around '&&' within '||' [-Werror=parentheses]
2011 | if (!fc->oldapi || !(fc->sb_flags &SB_RDONLY) && (mnt->mnt_sb->s_flags&SB_RDONLY))
Quoted 6 lines
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~cc1: all warnings being treated as errors
Caused by commit
4642e430c55b("btrfs: fix mount failure due to remount races")
My bad, in fact a new patch is going to remove the oldapi check completely as newer mount using new API will break the per-subvolume RO/RW again.
Thus a new patch is needed to remove the oldapi check first (https://lore.kernel.org/linux-btrfs/e1a70aa6dd0fc9ba6c7050a5befb3bd5b75a1377.1729664802.git.wqu@suse.com/), then the newer v2 patch (https://lore.kernel.org/linux-btrfs/[email protected]/T/#t) will be completely fine.
Thanks,
Qu
Quoted 3 lines
I have used the btrfs tree from next-20241023 for today.
Quoted 22 lines · Qu Wenruo
Quoted 8 lines · Stephen Rothwell
Hi all,
After merging the btrfs tree, today's linux-next build (
x86_64allmodconfig) failed like this:
fs/btrfs/super.c: In function 'btrfs_reconfigure_for_mount':fs/btrfs/super.c:2011:56: error: suggest parentheses around '&&' within '||' [-Werror=parentheses]
2011 | if (!fc->oldapi || !(fc->sb_flags &SB_RDONLY) && (mnt->mnt_sb->s_flags&SB_RDONLY))Quoted 6 lines
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~cc1: all warnings being treated as errors
Caused by commit
4642e430c55b("btrfs: fix mount failure due to remount races")My bad, in fact a new patch is going to remove the oldapi check completely as newer mount using new API will break the per-subvolume RO/RW again.
Quoted 5 lines
Thus a new patch is needed to remove the oldapi check first
(https://lore.kernel.org/linux-btrfs/e1a70aa6dd0fc9ba6c7050a5befb3bd5b75a1377.1729664802.git.wqu@suse.com/),
then the newer v2 patch
(https://lore.kernel.org/linux-btrfs/[email protected]/T/#t)
will be completely fine.
I probably missed the v2 and picked the patch with warning that I did not consider too serious but it seems linux-next builds with -Werrror. Meanwhile I've updated the for-next snapshot branch and dropped the patch.
Quoted 29 lines · David Sterba
Quoted 22 lines · Qu Wenruo
Quoted 8 lines · Stephen Rothwell
Hi all,
After merging the btrfs tree, today's linux-next build (
x86_64allmodconfig) failed like this:
fs/btrfs/super.c: In function 'btrfs_reconfigure_for_mount':fs/btrfs/super.c:2011:56: error: suggest parentheses around '&&' within '||' [-Werror=parentheses]
2011 | if (!fc->oldapi || !(fc->sb_flags &SB_RDONLY) && (mnt->mnt_sb->s_flags&SB_RDONLY))Quoted 6 lines
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~cc1: all warnings being treated as errors
Caused by commit
4642e430c55b("btrfs: fix mount failure due to remount races")My bad, in fact a new patch is going to remove the oldapi check completely as newer mount using new API will break the per-subvolume RO/RW again.
Quoted 5 lines
Thus a new patch is needed to remove the oldapi check first
(https://lore.kernel.org/linux-btrfs/e1a70aa6dd0fc9ba6c7050a5befb3bd5b75a1377.1729664802.git.wqu@suse.com/),
then the newer v2 patch
(https://lore.kernel.org/linux-btrfs/[email protected]/T/#t)
will be completely fine.
Quoted 4 lines
I probably missed the v2 and picked the patch with warning that I did not consider too serious but it seems linux-next builds with -Werrror. Meanwhile I've updated the for-next snapshot branch and dropped the patch.
I'd prefer to pick the v2 and its dependency ("btrfs: fix per-subvolume RO/RW flags with new mount API") for early testing.
As I'm pretty sure the rolling distros are already rolling out new mount using the fsconfig API, and breaking our per-subvolume RO/RW mount.
The promise that new mount API will solve the per-subvolume RO/RW without reconfiguration is mostly a lie.
The reality is, RO mount is still passed with both fsconfig(FSCONFIG_SET_FLAG, "ro") and mount_setattr(MOUNT_ATTR_RDONLY), doing exactly the same thing as the old mount.
Thanks,
Qu
Quoted 40 lines · Qu Wenruo
Quoted 29 lines · David Sterba
Quoted 22 lines · Qu Wenruo
Quoted 8 lines · Stephen Rothwell
Hi all,
After merging the btrfs tree, today's linux-next build (
x86_64allmodconfig) failed like this:
fs/btrfs/super.c: In function 'btrfs_reconfigure_for_mount':fs/btrfs/super.c:2011:56: error: suggest parentheses around '&&' within '||' [-Werror=parentheses]
2011 | if (!fc->oldapi || !(fc->sb_flags &SB_RDONLY) && (mnt->mnt_sb->s_flags&SB_RDONLY))Quoted 6 lines
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~cc1: all warnings being treated as errors
Caused by commit
4642e430c55b("btrfs: fix mount failure due to remount races")My bad, in fact a new patch is going to remove the oldapi check completely as newer mount using new API will break the per-subvolume RO/RW again.
Quoted 5 lines
Thus a new patch is needed to remove the oldapi check first
(https://lore.kernel.org/linux-btrfs/e1a70aa6dd0fc9ba6c7050a5befb3bd5b75a1377.1729664802.git.wqu@suse.com/),
then the newer v2 patch
(https://lore.kernel.org/linux-btrfs/[email protected]/T/#t)
will be completely fine.Quoted 4 lines
I probably missed the v2 and picked the patch with warning that I did not consider too serious but it seems linux-next builds with -Werrror. Meanwhile I've updated the for-next snapshot branch and dropped the patch.
I'd prefer to pick the v2 and its dependency ("btrfs: fix per-subvolume RO/RW flags with new mount API") for early testing.
Quoted 8 lines
As I'm pretty sure the rolling distros are already rolling out new mount using the fsconfig API, and breaking our per-subvolume RO/RW mount.
The promise that new mount API will solve the per-subvolume RO/RW without reconfiguration is mostly a lie.
The reality is, RO mount is still passed with bothfsconfig(FSCONFIG_SET_FLAG, "ro")andmount_setattr(MOUNT_ATTR_RDONLY), doing exactly the same thing as the old mount.
I'm monitoring the recent mount option problems, it's maybe due to syzbot and/or various users noticing what does not work anymore after the conversion to the new mount API in 6.8. Once the fixes are tested they're on the fast track to be in the next RC. In particular the RO/RW for subvolumes is maybe the most contentious change, but we have the use case and it ultimately must work. I would not call it a 'lie', I don't think there's an evil interest to break it, but we may be missing testing coverage so we notice it a few releases later. Anyway, fixes for mount option behaviour are always amenable for RC fixes.
Hi David,
Quoted 5 lines · On Thu, 24 Oct 2024 02:47:29 +0200 David Sterba <[email protected]> wrote:
I probably missed the v2 and picked the patch with warning that I did not consider too serious but it seems linux-next builds with -Werrror. Meanwhile I've updated the for-next snapshot branch and dropped the patch.
All all{mod,yes}config builds enable -Werror theses days (I think). We really don't want to introduce any warnings to the builds.
Signature · 2 lines
Cheers, Stephen Rothwell
Hi all,
Quoted 7 lines · On Thu, 24 Oct 2024 08:57:01 +1100 Stephen Rothwell <[email protected]>…
After merging the btrfs tree, today's linux-next build (
x86_64allmodconfig) failed like this:
fs/btrfs/super.c: In function 'btrfs_reconfigure_for_mount':fs/btrfs/super.c:2011:56: error: suggest parentheses around '&&' within '||' [-Werror=parentheses]
2011 | if (!fc->oldapi || !(fc->sb_flags &SB_RDONLY) && (mnt->mnt_sb->s_flags&SB_RDONLY))
Quoted 8 lines
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~cc1: all warnings being treated as errors
Caused by commit
4642e430c55b("btrfs: fix mount failure due to remount races")I have used the btrfs tree from next-20241023 for today.
I am still seeing this failure.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 13 lines · Stephen Rothwell
Hi all,
Quoted 10 lines · On Thu, 24 Oct 2024 08:57:01 +1100 Stephen Rothwell <[email protected]>…
After merging the btrfs tree, today's linux-next build (
x86_64allmodconfig) failed like this:
fs/btrfs/super.c: In function 'btrfs_reconfigure_for_mount':fs/btrfs/super.c:2011:56: error: suggest parentheses around '&&' within '||' [-Werror=parentheses]
2011 | if (!fc->oldapi || !(fc->sb_flags &SB_RDONLY) && (mnt->mnt_sb->s_flags&SB_RDONLY))| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~cc1: all warnings being treated as errors
Quoted 7 lines
Quoted 5 lines
Caused by commit
4642e430c55b("btrfs: fix mount failure due to remount races")I have used the btrfs tree from next-20241023 for today.
I am still seeing this failure.
Sorry, will be fixed in the upcoming for-next snapshot branch.