Skip to contentSkip to conversation

linux-next: manual merge of the xfs tree with Linus' tree

DISCUSSION Stephen Rothwell 3 participants 5 messages Jun 5, 2018 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

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

fs/gfs2/bmap.c

between commit:

628e366df11c ("gfs2: Iomap cleanups and improvements")

from Linus' tree and commit:

7ee66c03e40a ("iomap: move IOMAP_F_BOUNDARY to gfs2")

from the xfs 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 · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw

Hi all,

Quoted 13 lines · On Tue, 5 Jun 2018 10:34:03 +1000 Stephen Rothwell <[email protected]> wrote:

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

fs/gfs2/bmap.c

between commit:

628e366df11c ("gfs2: Iomap cleanups and improvements")

from Linus' tree and commit:

7ee66c03e40a ("iomap: move IOMAP_F_BOUNDARY to gfs2")

Quoted 8 lines

from the xfs 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.

Forgot the diff :-(

Signature · 55 lines
Cheers,
Stephen Rothwell

diff --cc fs/gfs2/bmap.c
index a7b586e02693,8efa6297e19c..000000000000
--- a/fs/gfs2/bmap.c
+++ b/fs/gfs2/bmap.c
@@@ -767,12 -680,13 +767,13 @@@ static void gfs2_stuffed_iomap(struct i
  		      sizeof(struct gfs2_dinode);
  	iomap->offset = 0;
  	iomap->length = i_size_read(inode);
- 	iomap->type = IOMAP_MAPPED;
- 	iomap->flags = IOMAP_F_DATA_INLINE;
+ 	iomap->type = IOMAP_INLINE;
  }
  
+ #define IOMAP_F_GFS2_BOUNDARY IOMAP_F_PRIVATE
+ 
  /**
 - * gfs2_iomap_begin - Map blocks from an inode to disk blocks
 + * gfs2_iomap_get - Map blocks from an inode to disk blocks
   * @inode: The inode
   * @pos: Starting position in bytes
   * @length: Length to map, in bytes
@@@ -838,20 -770,20 +839,20 @@@ static int gfs2_iomap_get(struct inode 
  	if (*ptr == 0)
  		goto do_alloc;
  
 -	iomap->type = IOMAP_MAPPED;
 -	iomap->addr = be64_to_cpu(*ptr) << inode->i_blkbits;
 +	bh = mp->mp_bh[ip->i_height - 1];
 +	len = gfs2_extent_length(bh->b_data, bh->b_size, ptr, len, &eob);
  
 -	bh = mp.mp_bh[ip->i_height - 1];
 -	len = gfs2_extent_length(bh->b_data, bh->b_size, ptr, lend - lblock, &eob);
 +	iomap->addr = be64_to_cpu(*ptr) << inode->i_blkbits;
 +	iomap->length = len << inode->i_blkbits;
 +	iomap->type = IOMAP_MAPPED;
 +	iomap->flags = IOMAP_F_MERGED;
  	if (eob)
- 		iomap->flags |= IOMAP_F_BOUNDARY;
+ 		iomap->flags |= IOMAP_F_GFS2_BOUNDARY;
 -	iomap->length = (u64)len << inode->i_blkbits;
  
 -out_release:
 -	release_metapath(&mp);
 -	bmap_unlock(ip, flags & IOMAP_WRITE);
  out:
 -	trace_gfs2_iomap_end(ip, iomap, ret);
 +	iomap->bdev = inode->i_sb->s_bdev;
 +unlock:
 +	up_read(&ip->i_rw_mutex);
  	return ret;
  
  do_alloc:
#2 lore raw
In reply to Stephen Rothwell
Quoted 14 lines · Stephen Rothwell

Hi all,

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

fs/gfs2/bmap.c

between commit:

628e366df11c ("gfs2: Iomap cleanups and improvements")

from Linus' tree and commit:

7ee66c03e40a ("iomap: move IOMAP_F_BOUNDARY to gfs2")

Quoted 8 lines

from the xfs 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.

We should have seen this before the gfs2 tree was merged into Linus' tree. Does that mean the gfs2 tree is not being pulled into the linux-next tree?

Cheers,

Dave.

Signature · 2 lines
Dave Chinner
[email protected]
#3 lore raw

2018-06-05 2:59 GMT+02:00 Dave Chinner <[email protected]>:

Quoted 24 lines · Stephen Rothwell
Quoted 14 lines

Hi all,

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

fs/gfs2/bmap.c

between commit:

628e366df11c ("gfs2: Iomap cleanups and improvements")

from Linus' tree and commit:

7ee66c03e40a ("iomap: move IOMAP_F_BOUNDARY to gfs2")

Quoted 8 lines

from the xfs 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.

Quoted 3 lines

We should have seen this before the gfs2 tree was merged into Linus' tree. Does that mean the gfs2 tree is not being pulled into the linux-next tree?

That's probably our fault, the gfs2 for-next branch was slightly outdated. That patch would have been better in the gfs2 tree. How would you like to proceed?

Thanks,
Andreas

#4 lore raw
In reply to Dave Chinner

Hi Dave,

Quoted 13 lines · On Tue, 5 Jun 2018 10:59:04 +1000 Dave Chinner <[email protected]> wrote:
Quoted 11 lines · Stephen Rothwell

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

fs/gfs2/bmap.c

between commit:

628e366df11c ("gfs2: Iomap cleanups and improvements")

from Linus' tree and commit:

Quoted 7 lines
Quoted 3 lines

7ee66c03e40a ("iomap: move IOMAP_F_BOUNDARY to gfs2")

from the xfs tree.

We should have seen this before the gfs2 tree was merged into Linus' tree. Does that mean the gfs2 tree is not being pulled into the linux-next tree?

It is pulled in, but the above gfs2 commit was only committed to the linux-next included branch overnight and then Linus was asked to pull it before I got a chance to build today's linux-next.

Signature · 2 lines
Cheers,
Stephen Rothwell