Skip to contentSkip to conversation

linux-next: manual merge of the vfs-brauner tree with the ext4 tree

DISCUSSION Stephen Rothwell 3 participants 5 messages May 8, 2024 – May 14, 2024 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

Today's linux-next merge of the vfs-brauner tree got a conflict in:

fs/ext4/file.c

between commit:

a0c7cce824a5 ("ext4: set FMODE_CAN_ODIRECT instead of a dummy direct_IO method")

from the ext4 tree and commit:

210a03c9d51a ("fs: claw back a few FMODE_* bits")

from the vfs-brauner 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.

Signature · 17 lines
Cheers,
Stephen Rothwell

diff --cc fs/ext4/file.c
index 77529c655f95,28c51b0cc4db..000000000000
--- a/fs/ext4/file.c
+++ b/fs/ext4/file.c
@@@ -884,8 -885,7 +884,7 @@@ static int ext4_file_open(struct inode 
  			return ret;
  	}
  
- 	filp->f_mode |= FMODE_NOWAIT | FMODE_BUF_RASYNC |
- 			FMODE_DIO_PARALLEL_WRITE | FMODE_CAN_ODIRECT;
 -	filp->f_mode |= FMODE_NOWAIT;
++	filp->f_mode |= FMODE_NOWAIT | FMODE_CAN_ODIRECT;
  	return dquot_file_open(inode, filp);
  }
#1 lore raw
Quoted 8 lines · Stephen Rothwell

Hi all,

Today's linux-next merge of the vfs-brauner tree got a conflict in:

fs/ext4/file.c

between commit:

Quoted 7 lines

a0c7cce824a5 ("ext4: set FMODE_CAN_ODIRECT instead of a dummy direct_IO method")

from the ext4 tree and commit:

210a03c9d51a ("fs: claw back a few FMODE_* bits")

from the vfs-brauner tree.

Ted, if you still can maybe just drop the ext4 patch for now? I can redo it for next merge window with the moved flag.

#2 lore raw

Hi Christoph,

Quoted 12 lines · On Wed, 8 May 2024 08:47:00 +0200 Christoph Hellwig <[email protected]> wrote:
Quoted 10 lines · Stephen Rothwell

Hi all,

Today's linux-next merge of the vfs-brauner tree got a conflict in:

fs/ext4/file.c

between commit:

a0c7cce824a5 ("ext4: set FMODE_CAN_ODIRECT instead of a dummy direct_IO method")

Quoted 8 lines
Quoted 5 lines

from the ext4 tree and commit:

210a03c9d51a ("fs: claw back a few FMODE_* bits")

from the vfs-brauner tree.

Ted, if you still can maybe just drop the ext4 patch for now? I can redo it for next merge window with the moved flag.

If the resolution I did is fine, I am sure Linus will cope (but worth mentioning it to him in the pull request). Its a simple enough conflict.

Signature · 2 lines
Cheers,
Stephen Rothwell
#3 lore raw
Quoted 7 lines · Stephen Rothwell
Quoted 3 lines · On Wed, 8 May 2024 08:47:00 +0200 Christoph Hellwig <[email protected]> wrote:

Ted, if you still can maybe just drop the ext4 patch for now? I can redo it for next merge window with the moved flag.

If the resolution I did is fine, I am sure Linus will cope (but worth mentioning it to him in the pull request). Its a simple enough conflict.

I agree... but at the same time, the patch in question is a cleanup and there's not a lot of downside in dropping this for a cycle. Cristoph, is that right? Will not taking this cleanup block anything that you were hoping to land this cycle?

I'm fine either way with either asking Linus to fix up the merge, or dropping it and picking it up later. In fact, I'd be fine just simply landing this post -rc1.

So what do people think? Again, I don't have strong opinions one way or another.

- Ted

#4 lore raw
In reply to Stephen Rothwell

Hi all,

Quoted 29 lines · On Wed, 8 May 2024 10:34:36 +1000 Stephen Rothwell <[email protected]> wrote:

Today's linux-next merge of the vfs-brauner tree got a conflict in:

fs/ext4/file.c

between commit:

a0c7cce824a5 ("ext4: set FMODE_CAN_ODIRECT instead of a dummy direct_IO method")

from the ext4 tree and commit:

210a03c9d51a ("fs: claw back a few FMODE_* bits")

from the vfs-brauner 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.

fs/ext4/file.c +0 -0
diff --cc fs/ext4/file.c
index 77529c655f95,28c51b0cc4db..000000000000

fs/ext4/file.c

Quoted 9 lines
fs/ext4/file.c +1 -2
@@@ -884,8 -885,7 +884,7 @@@ static int ext4_file_open(struct inode 
  			return ret;
  	}
 
- 	filp->f_mode |= FMODE_NOWAIT | FMODE_BUF_RASYNC |
- 			FMODE_DIO_PARALLEL_WRITE | FMODE_CAN_ODIRECT;
 -	filp->f_mode |= FMODE_NOWAIT;
++	filp->f_mode |= FMODE_NOWAIT | FMODE_CAN_ODIRECT;
  	return dquot_file_open(inode, filp);
  }

This is now a conflict between the ext4 tree and Linus' tree.

Signature · 2 lines
Cheers,
Stephen Rothwell