diff options
author | Wang Cong <xiyou.wangcong@gmail.com> | 2009-01-21 13:22:49 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2009-01-21 13:22:49 -0500 |
commit | 86179a05070d7678e7145b32cb28249d890170ba (patch) | |
tree | c4175ad55481eb077a1bf12ab875f75264140a3b /btrfsck.c | |
parent | 901314f07053d1a3504ce20a69eb07f08bba0ac1 (diff) |
btrfs-progs: make several functions static
Make several functions static, and make one argument const.
Signed-off-by: WANG Cong <wangcong@zeuux.org>
Diffstat (limited to 'btrfsck.c')
-rw-r--r-- | btrfsck.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1254,7 +1254,7 @@ static int fs_root_objectid(u64 objectid) return 0; } -int check_fs_roots(struct btrfs_root *root) +static int check_fs_roots(struct btrfs_root *root) { struct btrfs_path path; struct btrfs_key key; @@ -1937,7 +1937,7 @@ static int add_root_to_pending(struct extent_buffer *buf, return 0; } -int check_extent_refs(struct btrfs_root *root, +static int check_extent_refs(struct btrfs_root *root, struct cache_tree *extent_cache) { struct extent_record *rec; @@ -1972,7 +1972,7 @@ int check_extent_refs(struct btrfs_root *root, return err; } -int check_extents(struct btrfs_root *root) +static int check_extents(struct btrfs_root *root) { struct cache_tree extent_cache; struct cache_tree seen; @@ -2057,7 +2057,7 @@ int check_extents(struct btrfs_root *root) return ret; } -void print_usage(void) +static void print_usage(void) { fprintf(stderr, "usage: btrfsck dev\n"); fprintf(stderr, "%s\n", BTRFS_BUILD_VERSION); |