Skip to content

Commit cc8f51a

Browse files
committed
btrfs: rename btrfs_release_extent_buffer_pages() to mention folios
Continue page to folio updates, sync what the function does with it's name. Reviewed-by: Johannes Thumshirn <[email protected]> Reviewed-by: Anand Jain <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent a722c72 commit cc8f51a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

fs/btrfs/extent_io.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2562,8 +2562,8 @@ static void detach_extent_buffer_folio(const struct extent_buffer *eb, struct fo
25622562
spin_unlock(&folio->mapping->i_private_lock);
25632563
}
25642564

2565-
/* Release all pages attached to the extent buffer */
2566-
static void btrfs_release_extent_buffer_pages(const struct extent_buffer *eb)
2565+
/* Release all folios attached to the extent buffer */
2566+
static void btrfs_release_extent_buffer_folios(const struct extent_buffer *eb)
25672567
{
25682568
ASSERT(!extent_buffer_under_io(eb));
25692569

@@ -2585,7 +2585,7 @@ static void btrfs_release_extent_buffer_pages(const struct extent_buffer *eb)
25852585
*/
25862586
static inline void btrfs_release_extent_buffer(struct extent_buffer *eb)
25872587
{
2588-
btrfs_release_extent_buffer_pages(eb);
2588+
btrfs_release_extent_buffer_folios(eb);
25892589
btrfs_leak_debug_del_eb(eb);
25902590
kmem_cache_free(extent_buffer_cache, eb);
25912591
}
@@ -3201,8 +3201,8 @@ static int release_extent_buffer(struct extent_buffer *eb)
32013201
}
32023202

32033203
btrfs_leak_debug_del_eb(eb);
3204-
/* Should be safe to release our pages at this point */
3205-
btrfs_release_extent_buffer_pages(eb);
3204+
/* Should be safe to release folios at this point. */
3205+
btrfs_release_extent_buffer_folios(eb);
32063206
#ifdef CONFIG_BTRFS_FS_RUN_SANITY_TESTS
32073207
if (unlikely(test_bit(EXTENT_BUFFER_UNMAPPED, &eb->bflags))) {
32083208
kmem_cache_free(extent_buffer_cache, eb);

0 commit comments

Comments
 (0)