]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
btrfs: rename btrfs_release_extent_buffer_pages() to mention folios
authorDavid Sterba <dsterba@suse.com>
Thu, 9 Jan 2025 10:24:27 +0000 (11:24 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 13 Jan 2025 13:53:22 +0000 (14:53 +0100)
Continue page to folio updates, sync what the function does with it's
name.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c

index 617f2bfd46de253c9cb9ac12bdf5b24ce55f6ce7..e98f4f531ebcf3d66e44376c55895197e4e95a4b 100644 (file)
@@ -2562,8 +2562,8 @@ static void detach_extent_buffer_folio(const struct extent_buffer *eb, struct fo
        spin_unlock(&folio->mapping->i_private_lock);
 }
 
-/* Release all pages attached to the extent buffer */
-static void btrfs_release_extent_buffer_pages(const struct extent_buffer *eb)
+/* Release all folios attached to the extent buffer */
+static void btrfs_release_extent_buffer_folios(const struct extent_buffer *eb)
 {
        ASSERT(!extent_buffer_under_io(eb));
 
@@ -2585,7 +2585,7 @@ static void btrfs_release_extent_buffer_pages(const struct extent_buffer *eb)
  */
 static inline void btrfs_release_extent_buffer(struct extent_buffer *eb)
 {
-       btrfs_release_extent_buffer_pages(eb);
+       btrfs_release_extent_buffer_folios(eb);
        btrfs_leak_debug_del_eb(eb);
        kmem_cache_free(extent_buffer_cache, eb);
 }
@@ -3201,8 +3201,8 @@ static int release_extent_buffer(struct extent_buffer *eb)
                }
 
                btrfs_leak_debug_del_eb(eb);
-               /* Should be safe to release our pages at this point */
-               btrfs_release_extent_buffer_pages(eb);
+               /* Should be safe to release folios at this point. */
+               btrfs_release_extent_buffer_folios(eb);
 #ifdef CONFIG_BTRFS_FS_RUN_SANITY_TESTS
                if (unlikely(test_bit(EXTENT_BUFFER_UNMAPPED, &eb->bflags))) {
                        kmem_cache_free(extent_buffer_cache, eb);