public inbox for linux-next@vger.kernel.org 
 help / color / mirror / Atom feed
* linux-next: manual merge of the folio tree with the erofs tree
@ 2022-03-15  9:31 Stephen Rothwell
  0 siblings, 0 replies; only message in thread
From: Stephen Rothwell @ 2022-03-15  9:31 UTC (permalink / raw)
  To: Matthew Wilcox, Gao Xiang
  Cc: Gao Xiang, Linux Kernel Mailing List, Linux Next Mailing List

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

Hi all,

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

  fs/erofs/super.c

between commit:

  ab6bfa6e1e22 ("erofs: refine managed inode stuffs")

from the erofs tree and commit:

  8c5b1ba024af ("erofs: Convert from invalidatepage to invalidate_folio")

from the folio 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/erofs/super.c
index e178100c162a,a64c422f6763..000000000000
--- a/fs/erofs/super.c
+++ b/fs/erofs/super.c
@@@ -532,24 -535,18 +532,23 @@@ static int erofs_managed_cache_releasep
  	return ret;
  }
  
 +/*
 + * It will be called only on inode eviction. In case that there are still some
 + * decompression requests in progress, wait with rescheduling for a bit here.
 + * We could introduce an extra locking instead but it seems unnecessary.
 + */
- static void erofs_managed_cache_invalidatepage(struct page *page,
- 					       unsigned int offset,
- 					       unsigned int length)
+ static void erofs_managed_cache_invalidate_folio(struct folio *folio,
+ 					       size_t offset, size_t length)
  {
- 	const unsigned int stop = length + offset;
+ 	const size_t stop = length + offset;
  
- 	DBG_BUGON(!PageLocked(page));
+ 	DBG_BUGON(!folio_test_locked(folio));
  
  	/* Check for potential overflow in debug mode */
- 	DBG_BUGON(stop > PAGE_SIZE || stop < length);
+ 	DBG_BUGON(stop > folio_size(folio) || stop < length);
  
- 	if (offset == 0 && stop == PAGE_SIZE)
- 		while (!erofs_managed_cache_releasepage(page, GFP_NOFS))
+ 	if (offset == 0 && stop == folio_size(folio))
+ 		while (!erofs_managed_cache_releasepage(&folio->page, GFP_NOFS))
  			cond_resched();
  }
  

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-03-15  9:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-15  9:31 linux-next: manual merge of the folio tree with the erofs tree Stephen Rothwell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox