Skip to content

Commit 7ec28f8

Browse files
Lijuan Likdave
authored andcommitted
btrfs: mark btrfs_put_caching_control() static
btrfs_put_caching_control() is only used in block-group.c, so mark it static. Reviewed-by: Johannes Thumshirn <[email protected]> Signed-off-by: Lijuan Li <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent ef5a05c commit 7ec28f8

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

fs/btrfs/block-group.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ struct btrfs_caching_control *btrfs_get_caching_control(
418418
return ctl;
419419
}
420420

421-
void btrfs_put_caching_control(struct btrfs_caching_control *ctl)
421+
static void btrfs_put_caching_control(struct btrfs_caching_control *ctl)
422422
{
423423
if (refcount_dec_and_test(&ctl->count))
424424
kfree(ctl);

fs/btrfs/block-group.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,6 @@ void btrfs_wait_nocow_writers(struct btrfs_block_group *bg);
310310
void btrfs_wait_block_group_cache_progress(struct btrfs_block_group *cache,
311311
u64 num_bytes);
312312
int btrfs_cache_block_group(struct btrfs_block_group *cache, bool wait);
313-
void btrfs_put_caching_control(struct btrfs_caching_control *ctl);
314313
struct btrfs_caching_control *btrfs_get_caching_control(
315314
struct btrfs_block_group *cache);
316315
int btrfs_add_new_free_space(struct btrfs_block_group *block_group,

0 commit comments

Comments
 (0)