Skip to content

Commit 4ca532d

Browse files
alobakindavem330
authored andcommitted
btrfs: rename bitmap_set_bits() -> btrfs_bitmap_set_bits()
bitmap_set_bits() does not start with the FS' prefix and may collide with a new generic helper one day. It operates with the FS-specific types, so there's no change those two could do the same thing. Just add the prefix to exclude such possible conflict. Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com> Acked-by: David Sterba <dsterba@suse.com> Reviewed-by: Yury Norov <yury.norov@gmail.com> Signed-off-by: Alexander Lobakin <aleksander.lobakin@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 3f5ef51 commit 4ca532d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

fs/btrfs/free-space-cache.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1911,9 +1911,9 @@ static inline void bitmap_clear_bits(struct btrfs_free_space_ctl *ctl,
19111911
ctl->free_space -= bytes;
19121912
}
19131913

1914-
static void bitmap_set_bits(struct btrfs_free_space_ctl *ctl,
1915-
struct btrfs_free_space *info, u64 offset,
1916-
u64 bytes)
1914+
static void btrfs_bitmap_set_bits(struct btrfs_free_space_ctl *ctl,
1915+
struct btrfs_free_space *info, u64 offset,
1916+
u64 bytes)
19171917
{
19181918
unsigned long start, count, end;
19191919
int extent_delta = 1;
@@ -2249,7 +2249,7 @@ static u64 add_bytes_to_bitmap(struct btrfs_free_space_ctl *ctl,
22492249

22502250
bytes_to_set = min(end - offset, bytes);
22512251

2252-
bitmap_set_bits(ctl, info, offset, bytes_to_set);
2252+
btrfs_bitmap_set_bits(ctl, info, offset, bytes_to_set);
22532253

22542254
return bytes_to_set;
22552255

0 commit comments

Comments
 (0)