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>
Thu, 12 Dec 2024 19:33:34 +0000 (12:33 -0700)
commit3e6b7d69058fbc62f12cab08732f0b5067b23cf4
tree8766f32cf71b0f13863ea17c473a5f170f673985
parent231825b2e1ff6ba799c5eaf396d3ab2354e37c6b
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.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
mm/filemap.c