Skip to content

Commit 9179397

Browse files
author
Andreas Gruenbacher
committed
gfs2: Minor comments fix
Commit 4082976 ("gfs2: Convert gfs2_find_jhead() to use a folio") replaced grab_cache_page() by filemap_grab_folio(), but the comments were still referring to grab_cache_page(). Signed-off-by: Andreas Gruenbacher <[email protected]>
1 parent 5a90f8d commit 9179397

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/gfs2/lops.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ static bool gfs2_jhead_folio_search(struct gfs2_jdesc *jd,
451451
* Find the folio with 'index' in the journal's mapping. Search the folio for
452452
* the journal head if requested (cleanup == false). Release refs on the
453453
* folio so the page cache can reclaim it. We grabbed a
454-
* reference on this folio twice, first when we did a grab_cache_page()
454+
* reference on this folio twice, first when we did a filemap_grab_folio()
455455
* to obtain the folio to add it to the bio and second when we do a
456456
* filemap_get_folio() here to get the folio to wait on while I/O on it is being
457457
* completed.
@@ -476,7 +476,7 @@ static void gfs2_jhead_process_page(struct gfs2_jdesc *jd, unsigned long index,
476476
if (!*done)
477477
*done = gfs2_jhead_folio_search(jd, head, folio);
478478

479-
/* filemap_get_folio() and the earlier grab_cache_page() */
479+
/* filemap_get_folio() and the earlier filemap_grab_folio() */
480480
folio_put_refs(folio, 2);
481481
}
482482

0 commit comments

Comments
 (0)