]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: rename __lock_extent() and __try_lock_extent()
authorFilipe Manana <fdmanana@suse.com>
Mon, 31 Mar 2025 14:29:21 +0000 (15:29 +0100)
committerDavid Sterba <dsterba@suse.com>
Thu, 15 May 2025 12:30:43 +0000 (14:30 +0200)
commit2cb9ac3faadc964f2640f55246c1f4f6c5ea76be
treed48592051b10c77273094bef7f4de2af5c920c0f
parentb696440e5e13490bbd23f7c4656a861db04d14d7
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>
fs/btrfs/extent-io-tree.c
fs/btrfs/extent-io-tree.h
fs/btrfs/inode.c