path: root/btrfs-corrupt-block.c
diff options
authorDavid Sterba <>2015-09-14 23:39:28 +0200
committerDavid Sterba <>2015-09-14 23:45:53 +0200
commitfe2657a7077188b1cda2e99eb0193cc9feddf3de (patch)
treea9a37d19bde9908fb2352fea3371b3c37295256d /btrfs-corrupt-block.c
parent8ede30c220544034d2732b84d3438aa25bac4c11 (diff)
btrfs-progs: cleanup, mark more functions static
Reported by sparse. Signed-off-by: David Sterba <>
Diffstat (limited to 'btrfs-corrupt-block.c')
1 files changed, 5 insertions, 5 deletions
diff --git a/btrfs-corrupt-block.c b/btrfs-corrupt-block.c
index ea871f40..ee2093fa 100644
--- a/btrfs-corrupt-block.c
+++ b/btrfs-corrupt-block.c
@@ -33,8 +33,8 @@
#define FIELD_BUF_LEN 80
-struct extent_buffer *debug_corrupt_block(struct btrfs_root *root, u64 bytenr,
- u32 blocksize, u64 copy)
+static struct extent_buffer *debug_corrupt_block(struct btrfs_root *root,
+ u64 bytenr, u32 blocksize, u64 copy)
int ret;
struct extent_buffer *eb;
@@ -880,7 +880,7 @@ static int delete_csum(struct btrfs_root *root, u64 bytenr, u64 bytes)
* If using COW, chunk recover will use the old item to recover,
* which is still OK but we want to check the ability to rebuild chunk
* not only restore the old ones */
-int corrupt_item_nocow(struct btrfs_trans_handle *trans,
+static int corrupt_item_nocow(struct btrfs_trans_handle *trans,
struct btrfs_root *root, struct btrfs_path *path,
int del)
@@ -913,7 +913,7 @@ int corrupt_item_nocow(struct btrfs_trans_handle *trans,
return ret;
-int corrupt_chunk_tree(struct btrfs_trans_handle *trans,
+static int corrupt_chunk_tree(struct btrfs_trans_handle *trans,
struct btrfs_root *root)
int ret;
@@ -986,7 +986,7 @@ free_out:
return ret;
-int find_chunk_offset(struct btrfs_root *root,
+static int find_chunk_offset(struct btrfs_root *root,
struct btrfs_path *path, u64 offset)
struct btrfs_key key;