linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: manual merge of the btrfs tree with the fscache tree
@ 2021-02-11 23:38 Stephen Rothwell
  2021-02-12  1:07 ` Ira Weiny
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Rothwell @ 2021-02-11 23:38 UTC (permalink / raw)
  To: David Sterba, David Howells
  Cc: David Sterba, Ira Weiny, Linux Kernel Mailing List,
	Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 1321 bytes --]

Hi all,

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

  lib/iov_iter.c

between commit:

  11432a3cc061 ("iov_iter: Add ITER_XARRAY")

from the fscache tree and commit:

  325a835476e3 ("iov_iter: Remove memzero_page() in favor of zero_user()")

from the btrfs 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 lib/iov_iter.c
index 24413884b5ca,aa0d03b33a1e..000000000000
--- a/lib/iov_iter.c
+++ b/lib/iov_iter.c
@@@ -1048,9 -961,8 +1028,9 @@@ size_t iov_iter_zero(size_t bytes, stru
  		return pipe_zero(bytes, i);
  	iterate_and_advance(i, bytes, v,
  		clear_user(v.iov_base, v.iov_len),
- 		memzero_page(v.bv_page, v.bv_offset, v.bv_len),
+ 		zero_user(v.bv_page, v.bv_offset, v.bv_len),
 -		memset(v.iov_base, 0, v.iov_len)
 +		memset(v.iov_base, 0, v.iov_len),
- 		memzero_page(v.bv_page, v.bv_offset, v.bv_len)
++		zero_user(v.bv_page, v.bv_offset, v.bv_len)
  	)
  
  	return bytes;

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: linux-next: manual merge of the btrfs tree with the fscache tree
  2021-02-11 23:38 linux-next: manual merge of the btrfs tree with the fscache tree Stephen Rothwell
@ 2021-02-12  1:07 ` Ira Weiny
  2021-02-12  3:04   ` Stephen Rothwell
  0 siblings, 1 reply; 4+ messages in thread
From: Ira Weiny @ 2021-02-12  1:07 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: David Sterba, David Howells, David Sterba,
	Linux Kernel Mailing List, Linux Next Mailing List

On Fri, Feb 12, 2021 at 10:38:10AM +1100, Stephen Rothwell wrote:
> Hi all,
> 
> Today's linux-next merge of the btrfs tree got a conflict in:
> 
>   lib/iov_iter.c
> 
> between commit:
> 
>   11432a3cc061 ("iov_iter: Add ITER_XARRAY")
> 
> from the fscache tree and commit:
> 
>   325a835476e3 ("iov_iter: Remove memzero_page() in favor of zero_user()")

I don't seem to have that commit after fetching linux-next?  Should I have it?

This is where I fetched from.

https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git

After doing that I don't see the zero_user() as below.

All that said the resolution below seems correct.

Ira

> 
> from the btrfs 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 lib/iov_iter.c
> index 24413884b5ca,aa0d03b33a1e..000000000000
> --- a/lib/iov_iter.c
> +++ b/lib/iov_iter.c
> @@@ -1048,9 -961,8 +1028,9 @@@ size_t iov_iter_zero(size_t bytes, stru
>   		return pipe_zero(bytes, i);
>   	iterate_and_advance(i, bytes, v,
>   		clear_user(v.iov_base, v.iov_len),
> - 		memzero_page(v.bv_page, v.bv_offset, v.bv_len),
> + 		zero_user(v.bv_page, v.bv_offset, v.bv_len),
>  -		memset(v.iov_base, 0, v.iov_len)
>  +		memset(v.iov_base, 0, v.iov_len),
> - 		memzero_page(v.bv_page, v.bv_offset, v.bv_len)
> ++		zero_user(v.bv_page, v.bv_offset, v.bv_len)
>   	)
>   
>   	return bytes;



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: linux-next: manual merge of the btrfs tree with the fscache tree
  2021-02-12  1:07 ` Ira Weiny
@ 2021-02-12  3:04   ` Stephen Rothwell
  2021-02-17 23:50     ` Ira Weiny
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Rothwell @ 2021-02-12  3:04 UTC (permalink / raw)
  To: Ira Weiny
  Cc: David Sterba, David Howells, David Sterba,
	Linux Kernel Mailing List, Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 496 bytes --]

Hi Ira,

On Thu, 11 Feb 2021 17:07:41 -0800 Ira Weiny <ira.weiny@intel.com> wrote:
>
> On Fri, Feb 12, 2021 at 10:38:10AM +1100, Stephen Rothwell wrote:
> > from the fscache tree and commit:
> > 
> >   325a835476e3 ("iov_iter: Remove memzero_page() in favor of zero_user()")  
> 
> I don't seem to have that commit after fetching linux-next?  Should I have it?

It has not been released yet.  Hopefully it will be available in less than 10 hours :-)

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: linux-next: manual merge of the btrfs tree with the fscache tree
  2021-02-12  3:04   ` Stephen Rothwell
@ 2021-02-17 23:50     ` Ira Weiny
  0 siblings, 0 replies; 4+ messages in thread
From: Ira Weiny @ 2021-02-17 23:50 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: David Sterba, David Howells, David Sterba,
	Linux Kernel Mailing List, Linux Next Mailing List

On Fri, Feb 12, 2021 at 02:04:44PM +1100, Stephen Rothwell wrote:
> Hi Ira,
> 
> On Thu, 11 Feb 2021 17:07:41 -0800 Ira Weiny <ira.weiny@intel.com> wrote:
> >
> > On Fri, Feb 12, 2021 at 10:38:10AM +1100, Stephen Rothwell wrote:
> > > from the fscache tree and commit:
> > > 
> > >   325a835476e3 ("iov_iter: Remove memzero_page() in favor of zero_user()")  
> > 
> > I don't seem to have that commit after fetching linux-next?  Should I have it?
> 
> It has not been released yet.  Hopefully it will be available in less than 10 hours :-)

Thanks...  looking at the resulting code it looks good to me.  Thanks for
resolving this!

Ira

> 
> -- 
> Cheers,
> Stephen Rothwell



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-02-17 23:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-11 23:38 linux-next: manual merge of the btrfs tree with the fscache tree Stephen Rothwell
2021-02-12  1:07 ` Ira Weiny
2021-02-12  3:04   ` Stephen Rothwell
2021-02-17 23:50     ` Ira Weiny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).