Skip to content

Commit 1da7a06

Browse files
axboebrauner
authored andcommitted
mm/filemap: unify read/write dropbehind naming
The read side is filemap_end_dropbehind_read(), while the write side used folio_ as the prefix rather than filemap_. The read side makes more sense, unify the naming such that the write side follows that. Signed-off-by: Jens Axboe <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Christian Brauner <[email protected]>
1 parent 7b2b67d commit 1da7a06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mm/filemap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1604,7 +1604,7 @@ static void filemap_end_dropbehind(struct folio *folio)
16041604
* completes. Do that now. If we fail, it's likely because of a big folio -
16051605
* just reset dropbehind for that case and latter completions should invalidate.
16061606
*/
1607-
static void folio_end_dropbehind_write(struct folio *folio)
1607+
static void filemap_end_dropbehind_write(struct folio *folio)
16081608
{
16091609
/*
16101610
* Hitting !in_task() should not happen off RWF_DONTCACHE writeback,
@@ -1659,7 +1659,7 @@ void folio_end_writeback(struct folio *folio)
16591659
acct_reclaim_writeback(folio);
16601660

16611661
if (folio_dropbehind)
1662-
folio_end_dropbehind_write(folio);
1662+
filemap_end_dropbehind_write(folio);
16631663
folio_put(folio);
16641664
}
16651665
EXPORT_SYMBOL(folio_end_writeback);

0 commit comments

Comments
 (0)