aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/direct-io.c
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2025-04-08 15:52:09 +0000
committerDavid Sterba <[email protected]>2025-05-15 12:30:45 +0000
commit2e871330cea44f7459726b0d83252949ae76166f (patch)
tree6da1841f98ed6254c2c86a1f7befabf8d3964fb3 /fs/btrfs/direct-io.c
parentbtrfs: rename exported extent map compression functions (diff)
downloadkernel-2e871330cea44f7459726b0d83252949ae76166f.tar.gz
kernel-2e871330cea44f7459726b0d83252949ae76166f.zip
btrfs: rename extent map functions to get block start, end and check if in tree
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/direct-io.c')
-rw-r--r--fs/btrfs/direct-io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/direct-io.c b/fs/btrfs/direct-io.c
index 045497c8118a..2daf0c524500 100644
--- a/fs/btrfs/direct-io.c
+++ b/fs/btrfs/direct-io.c
@@ -246,7 +246,7 @@ static int btrfs_get_blocks_direct_write(struct extent_map **map,
else
type = BTRFS_ORDERED_NOCOW;
len = min(len, em->len - (start - em->start));
- block_start = extent_map_block_start(em) + (start - em->start);
+ block_start = btrfs_extent_map_block_start(em) + (start - em->start);
if (can_nocow_extent(BTRFS_I(inode), start, &len, &file_extent,
false) == 1) {
@@ -558,7 +558,7 @@ static int btrfs_dio_iomap_begin(struct inode *inode, loff_t start,
iomap->addr = IOMAP_NULL_ADDR;
iomap->type = IOMAP_HOLE;
} else {
- iomap->addr = extent_map_block_start(em) + (start - em->start);
+ iomap->addr = btrfs_extent_map_block_start(em) + (start - em->start);
iomap->type = IOMAP_MAPPED;
}
iomap->offset = start;