diff options
author | Colin Ian King | 2017-11-30 12:14:47 +0000 |
---|---|---|
committer | David Sterba | 2018-01-22 16:08:14 +0100 |
commit | ccc8dc758da0deeddaec2d8a37524401654e99de (patch) | |
tree | eda5319a4d1096ad2dc90d87bc58f6c38e9ab62a /fs/btrfs/backref.c | |
parent | 4a2d25cd93cbd2e5ad6c9aabd90da362b2dd9984 (diff) |
btrfs: make function update_share_count static
The function update_share_count is local to the source and does
not need to be in global scope, so make it static.
Cleans up sparse warning:
fs/btrfs/backref.c:219:6: warning: symbol 'update_share_count' was not
declared. Should it be static?
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/backref.c')
-rw-r--r-- | fs/btrfs/backref.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/backref.c b/fs/btrfs/backref.c index 7d0dc100a09a..e4054e533f6d 100644 --- a/fs/btrfs/backref.c +++ b/fs/btrfs/backref.c @@ -216,7 +216,8 @@ static int prelim_ref_compare(struct prelim_ref *ref1, return 0; } -void update_share_count(struct share_check *sc, int oldcount, int newcount) +static void update_share_count(struct share_check *sc, int oldcount, + int newcount) { if ((!sc) || (oldcount == 0 && newcount < 1)) return; |