]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
gfs2: Minor comments fix
authorAndreas Gruenbacher <agruenba@redhat.com>
Wed, 14 May 2025 19:53:00 +0000 (21:53 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Thu, 22 May 2025 07:12:27 +0000 (09:12 +0200)
Commit 40829760096df ("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 <agruenba@redhat.com>
fs/gfs2/lops.c

index a1022635abc988557f793e98d75e12889cf30cb0..ba97e97d3eee454f7110021e723b2ea67b9476d0 100644 (file)
@@ -451,7 +451,7 @@ static bool gfs2_jhead_folio_search(struct gfs2_jdesc *jd,
  * Find the folio with 'index' in the journal's mapping. Search the folio for
  * the journal head if requested (cleanup == false). Release refs on the
  * folio so the page cache can reclaim it. We grabbed a
- * reference on this folio twice, first when we did a grab_cache_page()
+ * reference on this folio twice, first when we did a filemap_grab_folio()
  * to obtain the folio to add it to the bio and second when we do a
  * filemap_get_folio() here to get the folio to wait on while I/O on it is being
  * completed.
@@ -476,7 +476,7 @@ static void gfs2_jhead_process_page(struct gfs2_jdesc *jd, unsigned long index,
        if (!*done)
                *done = gfs2_jhead_folio_search(jd, head, folio);
 
-       /* filemap_get_folio() and the earlier grab_cache_page() */
+       /* filemap_get_folio() and the earlier filemap_grab_folio() */
        folio_put_refs(folio, 2);
 }