Skip to contentSkip to conversation

linux-next: manual merge of the folio tree with the ubifs-fixes tree

DISCUSSION Stephen Rothwell 3 participants 4 messages Mar 15, 2022 – Mar 23, 2022 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

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

fs/ubifs/file.c

between commit:

3b67db8a6ca8 ("ubifs: Fix to add refcount once page is set private")

from the ubifs-fixes tree and commit:

c337f2f4f746 ("ubifs: Convert from invalidatepage to invalidate_folio")

from the folio tree.

I fixed it up (I hope - 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 · 19 lines
Cheers,
Stephen Rothwell

diff --cc fs/ubifs/file.c
index 6b45a037a047,8a9ffc2d4167..000000000000
--- a/fs/ubifs/file.c
+++ b/fs/ubifs/file.c
@@@ -1304,8 -1304,8 +1304,8 @@@ static void ubifs_invalidate_folio(stru
  		release_existing_page_budget(c);
  
  	atomic_long_dec(&c->dirty_pg_cnt);
- 	detach_page_private(page);
- 	ClearPageChecked(page);
 -	folio_clear_private(folio);
++	folio_detach_private(folio);
+ 	folio_clear_checked(folio);
  }
  
  int ubifs_fsync(struct file *file, loff_t start, loff_t end, int datasync)
Acked-by
#1 lore raw
Quoted 14 lines · Stephen Rothwell

Hi all,

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

fs/ubifs/file.c

between commit:

3b67db8a6ca8 ("ubifs: Fix to add refcount once page is set private")

from the ubifs-fixes tree and commit:

c337f2f4f746 ("ubifs: Convert from invalidatepage to invalidate_folio")

Quoted 9 lines

from the folio tree.

I fixed it up (I hope - 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.

This conflict is handled right.

#2 lore raw
In reply to Stephen Rothwell

Hi all,

Quoted 29 lines · On Tue, 15 Mar 2022 20:52:59 +1100 Stephen Rothwell <[email protected]>…

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

fs/ubifs/file.c

between commit:

3b67db8a6ca8 ("ubifs: Fix to add refcount once page is set private")

from the ubifs-fixes tree and commit:

c337f2f4f746 ("ubifs: Convert from invalidatepage to invalidate_folio")

from the folio tree.

I fixed it up (I hope - 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/ubifs/file.c +0 -0
diff --cc fs/ubifs/file.c
index 6b45a037a047,8a9ffc2d4167..000000000000
@@@ -1304,8 -1304,8 +1304,8 @@@ static void ubifs_invalidate_folio(stru
  		release_existing_page_budget(c);

fs/ubifs/file.c

Quoted 10 lines
fs/ubifs/file.c +2 -2
 
  	atomic_long_dec(&c->dirty_pg_cnt);
- 	detach_page_private(page);
- 	ClearPageChecked(page);
 -	folio_clear_private(folio);
++	folio_detach_private(folio);
+ 	folio_clear_checked(folio);
  }
 
  int ubifs_fsync(struct file *file, loff_t start, loff_t end, int datasync)

This is now a conflict between the ubifs-fixes tree and Linus' tree.

Signature · 2 lines
Cheers,
Stephen Rothwell
#3 lore raw

----- Ursprüngliche Mail -----

Quoted 1 line

This is now a conflict between the ubifs-fixes tree and Linus' tree.

Thanks for letting me know, I'll note this in my PR to Linus.

Thanks,
//richard