diff options
| author | Filipe Manana <[email protected]> | 2025-04-08 16:13:12 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2025-05-15 12:30:45 +0000 |
| commit | ae98ae2a50d72b01d0a61cb21e1ac75bfcebc5f3 (patch) | |
| tree | 2f573f88f0532a2888891d6ada504afc14177a8f /fs/btrfs/extent_io.c | |
| parent | btrfs: rename extent map functions to get block start, end and check if in tree (diff) | |
| download | kernel-ae98ae2a50d72b01d0a61cb21e1ac75bfcebc5f3.tar.gz kernel-ae98ae2a50d72b01d0a61cb21e1ac75bfcebc5f3.zip | |
btrfs: rename functions to allocate and free extent maps
These functions are exported and don't have a 'btrfs_' prefix in their
names, which goes against coding style conventions. Rename them to have
such prefix, making it clear they are from btrfs and avoiding potential
collisions in the future with functions defined elsewhere outside btrfs.
Signed-off-by: Filipe Manana <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/extent_io.c')
| -rw-r--r-- | fs/btrfs/extent_io.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 16d4454bbc8b..f3148ebcd39a 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -898,7 +898,7 @@ static struct extent_map *get_extent_map(struct btrfs_inode *inode, return em; } - free_extent_map(em); + btrfs_free_extent_map(em); *em_cached = NULL; } @@ -1026,7 +1026,7 @@ static int btrfs_do_readpage(struct folio *folio, struct extent_map **em_cached, if (prev_em_start) *prev_em_start = em->start; - free_extent_map(em); + btrfs_free_extent_map(em); em = NULL; /* we've found a hole, just zero and go on */ @@ -1246,7 +1246,7 @@ int btrfs_read_folio(struct file *file, struct folio *folio) ret = btrfs_do_readpage(folio, &em_cached, &bio_ctrl, NULL); btrfs_unlock_extent(&inode->io_tree, start, end, &cached_state); - free_extent_map(em_cached); + btrfs_free_extent_map(em_cached); /* * If btrfs_do_readpage() failed we will want to submit the assembled @@ -1551,7 +1551,7 @@ static int submit_one_sector(struct btrfs_inode *inode, ASSERT(block_start != EXTENT_MAP_HOLE); ASSERT(block_start != EXTENT_MAP_INLINE); - free_extent_map(em); + btrfs_free_extent_map(em); em = NULL; /* @@ -2566,7 +2566,7 @@ void btrfs_readahead(struct readahead_control *rac) btrfs_unlock_extent(&inode->io_tree, start, end, &cached_state); if (em_cached) - free_extent_map(em_cached); + btrfs_free_extent_map(em_cached); submit_one_bio(&bio_ctrl); } @@ -2675,7 +2675,7 @@ bool try_release_extent_mapping(struct folio *folio, gfp_t mask) } if ((em->flags & EXTENT_FLAG_PINNED) || em->start != start) { write_unlock(&extent_tree->lock); - free_extent_map(em); + btrfs_free_extent_map(em); break; } if (btrfs_test_range_bit_exists(io_tree, em->start, @@ -2709,13 +2709,13 @@ remove_em: */ remove_extent_mapping(inode, em); /* Once for the inode's extent map tree. */ - free_extent_map(em); + btrfs_free_extent_map(em); next: start = btrfs_extent_map_end(em); write_unlock(&extent_tree->lock); /* Once for us, for the lookup_extent_mapping() reference. */ - free_extent_map(em); + btrfs_free_extent_map(em); if (need_resched()) { /* |
