linux-next: build failure after merge of the vfs-brauner tree
Subsystems (2)
Hi all,
After merging the vfs-brauner tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:
fs/netfs/buffered_write.c: In function 'netfs_kill_pages':fs/netfs/buffered_write.c:569:17: error: implicit declaration of function 'generic_error_remove_page'; did you mean 'generic_error_remove_folio'? [-Werror=implicit-function-declaration]
569 | generic_error_remove_page(mapping, folio_page(folio, 0));
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| generic_error_remove_folioCaused by commit
dec5b4af52dc ("netfs: Provide a writepages implementation")
interacting with commit
af7628d6ec19 ("fs: convert error_remove_page to error_remove_folio")
from the mm-stable tree.
I have applied the following merge resolution patch:
From: Stephen Rothwell <[email protected]>
Date: Thu, 21 Dec 2023 11:08:57 +1100
Subject: [PATCH] fixup for "netfs: Provide a writepages implementation"
interacting with
af7628d6ec19 ("fs: convert error_remove_page to error_remove_folio")
from the mm-stable tree.
--- fs/netfs/buffered_write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/netfs/buffered_write.c +1 -1
@@ -566,7 +566,7 @@ static void netfs_kill_pages(struct address_space *mapping,folio_end_fscache (folio);folio_end_writeback (folio);folio_lock (folio); -generic_error_remove_page (mapping,folio_page (folio,0 )); +generic_error_remove_folio (mapping, folio);folio_unlock (folio);folio_put (folio);
Signature · 5 lines
2.43.0 -- Cheers, Stephen Rothwell
Quoted 1 line · Stephen Rothwell
I have applied the following merge resolution patch:
The merge resolution is correct ...
fs/netfs/buffered_write.c static void netfs_kill_pages(struct address_space *mapping, · line 569
Quoted 6 lines
+++
b/fs/netfs/buffered_write.cfs/netfs/buffered_write.c +0
-1@@ -566,7 +566,7 @@ static void netfs_kill_pages(struct address_space *mapping,folio_end_fscache (folio);folio_end_writeback (folio);folio_lock (folio); -generic_error_remove_page (mapping,folio_page (folio,0 ));
but what Dave wrote here is _not_.
Call folio_page() when you need to go back from folio to page for something that is intrinsically page based, like kmap(). This isn't that case. This is an interface that hadn't been converted yet, and specifying &folio->page is the correct way to handle this because it's an indication that there is work here to do before we can call the folio conversion complete.
Please be more careful.
Hi all,
Quoted 14 lines · On Thu, 21 Dec 2023 11:18:47 +1100 Stephen Rothwell <[email protected]>…
After merging the vfs-brauner tree, today's linux-next build (powerpc
ppc64_defconfig) failed like this:
fs/netfs/buffered_write.c: In function 'netfs_kill_pages':fs/netfs/buffered_write.c:569:17: error: implicit declaration of function 'generic_error_remove_page'; did you mean 'generic_error_remove_folio'? [-Werror=implicit-function-declaration]569 | generic_error_remove_page(mapping, folio_page(folio, 0)); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | generic_error_remove_folioCaused by commit
dec5b4af52dc("netfs: Provide a writepages implementation")
Quoted 7 lines
interacting with commit
af7628d6ec19("fs: converterror_remove_pagetoerror_remove_folio")from the mm-stable tree.
I have applied the following merge resolution patch:
The resolution is now:
From: Stephen Rothwell <[email protected]>
Date: Thu, 21 Dec 2023 11:08:57 +1100
Subject: [PATCH] fixup for "netfs: Provide a writepages implementation"
interacting with
af7628d6ec19 ("fs: convert error_remove_page to error_remove_folio")
from the mm-stable tree.
--- fs/netfs/buffered_write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/netfs/buffered_write.c +1 -1
@@ -566,7 +566,7 @@ static void netfs_kill_pages(struct address_space *mapping,folio_end_fscache (folio);folio_end_writeback (folio);folio_lock (folio); -generic_error_remove_page (mapping, &folio->page); +generic_error_remove_folio (mapping, folio);folio_unlock (folio);folio_put (folio);
Signature · 5 lines
2.43.0 -- Cheers, Stephen Rothwell