Hi all,
Today's linux-next merge of the ext4 tree got a conflict in:
fs/ext4/ioctl.c
between commit:
97524b454bc5 ("ext4: split ext4_shutdown")
from Linus' tree and commit:
c4d13222afd8 ("ext4: fix to check return value of freeze_bdev() in ext4_shutdown()")
from the ext4 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.
--
Cheers,
Stephen Rothwell
diff --cc fs/ext4/ioctl.c
index 961284cc9b65,55be1b8a6360..000000000000
--- a/fs/ext4/ioctl.c
+++ b/fs/ext4/ioctl.c
@@@ -793,10 -793,18 +793,11 @@@ static int ext4_ioctl_setproject(struc
}
#endif
-static int ext4_shutdown(struct super_block *sb, unsigned long arg)
+int ext4_force_shutdown(struct super_block *sb, u32 flags)
{
struct ext4_sb_info *sbi = EXT4_SB(sb);
- __u32 flags;
+ int ret;
- if (!capable(CAP_SYS_ADMIN))
- return -EPERM;
-
- if (get_user(flags, (__u32 __user *)arg))
- return -EFAULT;
-
if (flags > EXT4_GOING_FLAGS_NOLOGFLUSH)
return -EINVAL;
On Tue, Jun 27, 2023 at 10:39:00AM +1000, Stephen Rothwell wrote:
> Hi all,
>
> Today's linux-next merge of the ext4 tree got a conflict in:
>
> fs/ext4/ioctl.c
>
> between commit:
>
> 97524b454bc5 ("ext4: split ext4_shutdown")
>
> from Linus' tree and commit:
>
> c4d13222afd8 ("ext4: fix to check return value of freeze_bdev() in ext4_shutdown()")
Hmm, I can't actually find the latter commit in linux-next and the context
below also doesn't make it obviously cler to me what the conflict was.
Hi Christoph,
On Tue, 27 Jun 2023 08:37:53 +0200 Christoph Hellwig <hch@lst.de> wrote:
>
> On Tue, Jun 27, 2023 at 10:39:00AM +1000, Stephen Rothwell wrote:
> > Hi all,
> >
> > Today's linux-next merge of the ext4 tree got a conflict in:
> >
> > fs/ext4/ioctl.c
> >
> > between commit:
> >
> > 97524b454bc5 ("ext4: split ext4_shutdown")
> >
> > from Linus' tree and commit:
> >
> > c4d13222afd8 ("ext4: fix to check return value of freeze_bdev() in ext4_shutdown()")
>
> Hmm, I can't actually find the latter commit in linux-next and the context
> below also doesn't make it obviously cler to me what the conflict was.
That is probably because today's tree had not been released yet ..
please refetch and try again.
--
Cheers,
Stephen Rothwell
© 2016 - 2026 Red Hat, Inc.