mm/filemap: change filemap_create_folio() to take a struct kiocb
authorJens Axboe <axboe@kernel.dk>
Thu, 7 Nov 2024 19:04:53 +0000 (12:04 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 20 Dec 2024 15:30:39 +0000 (08:30 -0700)
commit391bdf57ae02927e1033a960c742e630f00af258
tree90e0fe7c6b0e7453b6cfa21ead61f1601d4bebdf
parent8faabc041a001140564f718dabe37753e88b37fa
mm/filemap: change filemap_create_folio() to take a struct kiocb

Rather than pass in both the file and position directly from the kiocb,
just take a struct kiocb instead. With the kiocb being passed in, skip
passing in the address_space separately as well. While doing so, move the
ki_flags checking into filemap_create_folio() as well. In preparation for
actually needing the kiocb in the function.

No functional changes in this patch.

Reviewed-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
mm/filemap.c