]> www.infradead.org Git - users/willy/pagecache.git/commit
mm/filemap: Change filemap_create_page calling conventions
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 2 Nov 2020 05:42:58 +0000 (00:42 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 25 Nov 2020 02:02:15 +0000 (21:02 -0500)
commit988c28b8bc4f802a919279f9a93aa98e9a03c61b
treeef74a7494c8b7347b2dfaee58f8e1b42e09b4954
parente3f847974f59ea133c45d6664b328f5834631ac1
mm/filemap: Change filemap_create_page calling conventions

By moving the iocb flag checks to the caller, we can pass the
file and the page index instead of the iocb.  It never needed the iter.
By passing the pagevec, we can return an errno (or AOP_TRUNCATED_PAGE)
instead of an ERR_PTR.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Kent Overstreet <kent.overstreet@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
mm/filemap.c