diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-05-01 07:08:08 +0200 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-05-10 05:12:34 +0200 |
commit | 68189fef88c7d02eb92e038be3d6428ebd0d2945 (patch) | |
tree | 27aa837e7dde746eca2904f548a3a17644a48337 /mm/vmscan.c | |
parent | jbd2: Convert release_buffer_page() to use a folio (diff) | |
download | linux-68189fef88c7d02eb92e038be3d6428ebd0d2945.tar.xz linux-68189fef88c7d02eb92e038be3d6428ebd0d2945.zip |
fs: Change try_to_free_buffers() to take a folio
All but two of the callers already have a folio; pass a folio into
try_to_free_buffers(). This removes the last user of cancel_dirty_page()
so remove that wrapper function too.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Diffstat (limited to 'mm/vmscan.c')
-rw-r--r-- | mm/vmscan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c index 27851232e00c..f3f7ce2c4068 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -1181,7 +1181,7 @@ static pageout_t pageout(struct folio *folio, struct address_space *mapping) * folio->mapping == NULL while being dirty with clean buffers. */ if (folio_test_private(folio)) { - if (try_to_free_buffers(&folio->page)) { + if (try_to_free_buffers(folio)) { folio_clear_dirty(folio); pr_info("%s: orphaned folio\n", __func__); return PAGE_CLEAN; |