Thread (13 messages) 13 messages, 4 authors, 2021-08-19

Re: [RFC PATCH v2 2/5] mm: Remove the callback func argument from __swap_writepage()

From: Christoph Hellwig <hch@lst.de>
Date: 2021-08-13 07:03:39
Also in: linux-fsdevel, linux-nfs, lkml

On Thu, Aug 12, 2021 at 09:22:15PM +0100, David Howells wrote:
Remove the callback func argument from __swap_writepage() as it's
end_swap_bio_write() in both places that call it.
Yeah.  I actually had a similar patch in a WIP tree for a while but
never got to end it out.
 /* linux/mm/page_io.c */
 extern int swap_readpage(struct page *page, bool do_poll);
 extern int swap_writepage(struct page *page, struct writeback_control *wbc);
-extern void end_swap_bio_write(struct bio *bio);
-extern int __swap_writepage(struct page *page, struct writeback_control *wbc,
-	bio_end_io_t end_write_func);
+extern int __swap_writepage(struct page *page, struct writeback_control *wbc);
Please also drop the extern while you're at it.

With that:

Reviewed-by: Christoph Hellwig <hch@lst.de>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help