Skip to content

Commit

Permalink
btrfs: rename btrfs_release_extent_buffer_page
Browse files Browse the repository at this point in the history
The function used to release one page (and always the first one), but
not anymore since a50924e ("btrfs: drop constant param
from btrfs_release_extent_buffer_page").  Update the name and comment.

Signed-off-by: David Sterba <dsterba@suse.com>
  • Loading branch information
David Sterba committed Aug 6, 2018
1 parent d64766f commit 55ac013
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fs/btrfs/extent_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -4643,9 +4643,9 @@ int extent_buffer_under_io(struct extent_buffer *eb)
}

/*
* Helper for releasing extent buffer page.
* Release all pages attached to the extent buffer.
*/
static void btrfs_release_extent_buffer_page(struct extent_buffer *eb)
static void btrfs_release_extent_buffer_pages(struct extent_buffer *eb)
{
int i;
int num_pages;
Expand Down Expand Up @@ -4696,7 +4696,7 @@ static void btrfs_release_extent_buffer_page(struct extent_buffer *eb)
*/
static inline void btrfs_release_extent_buffer(struct extent_buffer *eb)
{
btrfs_release_extent_buffer_page(eb);
btrfs_release_extent_buffer_pages(eb);
__free_extent_buffer(eb);
}

Expand Down Expand Up @@ -5085,7 +5085,7 @@ static int release_extent_buffer(struct extent_buffer *eb)
}

/* Should be safe to release our pages at this point */
btrfs_release_extent_buffer_page(eb);
btrfs_release_extent_buffer_pages(eb);
#ifdef CONFIG_BTRFS_FS_RUN_SANITY_TESTS
if (unlikely(test_bit(EXTENT_BUFFER_DUMMY, &eb->bflags))) {
__free_extent_buffer(eb);
Expand Down

0 comments on commit 55ac013

Please sign in to comment.