btrfs: rename btrfs_release_extent_buffer_page
The function used to release one page (and always the first one), but
not anymore since a50924e3a4 ("btrfs: drop constant param
from btrfs_release_extent_buffer_page"). Update the name and comment.
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
@@ -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 i;
|
||||||
int num_pages;
|
int num_pages;
|
||||||
@@ -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)
|
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);
|
__free_extent_buffer(eb);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -5085,7 +5085,7 @@ static int release_extent_buffer(struct extent_buffer *eb)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Should be safe to release our pages at this point */
|
/* 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
|
#ifdef CONFIG_BTRFS_FS_RUN_SANITY_TESTS
|
||||||
if (unlikely(test_bit(EXTENT_BUFFER_DUMMY, &eb->bflags))) {
|
if (unlikely(test_bit(EXTENT_BUFFER_DUMMY, &eb->bflags))) {
|
||||||
__free_extent_buffer(eb);
|
__free_extent_buffer(eb);
|
||||||
|
|||||||
Reference in New Issue
Block a user