btrfs/free-space-cache.c: quiet sparse warnings
PATCH 1/1 btrfs/free-space-cache.c: quiet sparse warnings
Quiet the following sparse warnings:
warning: symbol '__create_free_space_inode' was not declared. Should it be static?
warning: symbol '__load_free_space_cache' was not declared. Should it be static?
warning: symbol '__btrfs_write_out_cache' was not declared. Should it be static?
warning: symbol '__btrfs_remove_free_space_cache_locked' was not declared. Should it be static?
warning: context imbalance in 'insert_into_bitmap' - unexpected unlock
Signed-off-by H Hartley Sweeten <[email protected]>
Cc Chris Mason <[email protected]> (maintainer:BTRFS FILE SYSTEM)
---
fs/btrfs/free-space-cache.c +7 -4
@@ -113,7 +113,7 @@ struct inode *lookup_free_space_inode(struct btrfs_root *root,return inode; } -int __create_free_space_inode (struct btrfs_root *root, +static int __create_free_space_inode (struct btrfs_root *root,struct btrfs_trans_handle *trans,struct btrfs_path *path,u64 ino,u64 offset) {
@@ -238,7 +238,7 @@ static int readahead_cache(struct inode *inode)return 0 ; } -int __load_free_space_cache (struct btrfs_root *root,struct inode *inode, +static int __load_free_space_cache (struct btrfs_root *root,struct inode *inode,struct btrfs_free_space_ctl *ctl,struct btrfs_path *path,u64 offset) {
@@ -526,7 +526,7 @@ out:return ret; } -int __btrfs_write_out_cache(struct btrfs_root *root, struct inode *inode, +static int __btrfs_write_out_cache(struct btrfs_root *root, struct inode *inode, struct btrfs_free_space_ctl *ctl, struct btrfs_block_group_cache *block_group, struct btrfs_trans_handle *trans,
@@ -1433,6 +1433,8 @@ static struct btrfs_free_space_op free_space_op = {static int insert_into_bitmap (struct btrfs_free_space_ctl *ctl,struct btrfs_free_space *info) + __releases(&ctl->tree_lock) + __acquires(&ctl->tree_lock) {struct btrfs_free_space *bitmap_info;struct btrfs_block_group_cache *block_group =NULL ;
@@ -1842,7 +1844,8 @@ out:return 0 ; } -void __btrfs_remove_free_space_cache_locked (struct btrfs_free_space_ctl *ctl) +static void +__btrfs_remove_free_space_cache_locked (struct btrfs_free_space_ctl *ctl) {struct btrfs_free_space *info;struct rb_node *node;