Commit ccc8dc75 authored by Colin Ian King's avatar Colin Ian King Committed by David Sterba

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: default avatarColin Ian King <colin.king@canonical.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 4a2d25cd
...@@ -216,7 +216,8 @@ static int prelim_ref_compare(struct prelim_ref *ref1, ...@@ -216,7 +216,8 @@ static int prelim_ref_compare(struct prelim_ref *ref1,
return 0; 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)) if ((!sc) || (oldcount == 0 && newcount < 1))
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment