diff options
author | Filipe Manana <fdmanana@suse.com> | 2025-03-31 17:29:21 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2025-05-15 15:30:43 +0300 |
commit | 2cb9ac3faadc964f2640f55246c1f4f6c5ea76be (patch) | |
tree | d48592051b10c77273094bef7f4de2af5c920c0f /fs/btrfs/inode.c | |
parent | b696440e5e13490bbd23f7c4656a861db04d14d7 (diff) | |
download | linux-2cb9ac3faadc964f2640f55246c1f4f6c5ea76be.tar.xz |
btrfs: rename __lock_extent() and __try_lock_extent()
These functions are exported so they should have a 'btrfs_' prefix by
convention, to make it clear they are btrfs specific and to avoid
collisions with functions from elsewhere in the kernel. Their double
underscore prefix is also discouraged.
So remove their double underscore prefix, add a 'btrfs_' prefix to their
name to make it clear they are from btrfs and a '_bits' suffix to avoid
collision with btrfs_lock_extent() and btrfs_try_lock_extent().
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 6b173fa2c325..d5f2aaff58a7 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -3127,9 +3127,9 @@ int btrfs_finish_one_ordered(struct btrfs_ordered_extent *ordered_extent) */ if (!test_bit(BTRFS_ORDERED_NOCOW, &ordered_extent->flags)) { clear_bits |= EXTENT_LOCKED | EXTENT_FINISHING_ORDERED; - __lock_extent(io_tree, start, end, - EXTENT_LOCKED | EXTENT_FINISHING_ORDERED, - &cached_state); + btrfs_lock_extent_bits(io_tree, start, end, + EXTENT_LOCKED | EXTENT_FINISHING_ORDERED, + &cached_state); } if (freespace_inode) |