btrfs-progs: make many private symbols static
Signed-off-by: Zach Brown <zab@redhat.com> Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
This commit is contained in:
parent
66253a8183
commit
d1dc091980
7 changed files with 12 additions and 12 deletions
|
@ -223,7 +223,7 @@ static int custom_free_extent(struct btrfs_root *root, u64 bytenr,
|
|||
return intersect_with_sb(bytenr, num_bytes);
|
||||
}
|
||||
|
||||
struct btrfs_extent_ops extent_ops = {
|
||||
static struct btrfs_extent_ops extent_ops = {
|
||||
.alloc_extent = custom_alloc_extent,
|
||||
.free_extent = custom_free_extent,
|
||||
};
|
||||
|
|
6
btrfs.c
6
btrfs.c
|
@ -31,7 +31,7 @@ static const char * const btrfs_cmd_group_usage[] = {
|
|||
static const char btrfs_cmd_group_info[] =
|
||||
"Use --help as an argument for information on a specific group or command.";
|
||||
|
||||
char argv0_buf[ARGV0_BUF_SIZE] = "btrfs";
|
||||
static char argv0_buf[ARGV0_BUF_SIZE] = "btrfs";
|
||||
|
||||
static inline const char *skip_prefix(const char *str, const char *prefix)
|
||||
{
|
||||
|
@ -184,7 +184,7 @@ int check_argc_max(int nargs, int expected)
|
|||
return 0;
|
||||
}
|
||||
|
||||
const struct cmd_group btrfs_cmd_group;
|
||||
static const struct cmd_group btrfs_cmd_group;
|
||||
|
||||
static const char * const cmd_help_usage[] = {
|
||||
"btrfs help [--full]",
|
||||
|
@ -239,7 +239,7 @@ static int handle_options(int *argc, char ***argv)
|
|||
return (*argv) - orig_argv;
|
||||
}
|
||||
|
||||
const struct cmd_group btrfs_cmd_group = {
|
||||
static const struct cmd_group btrfs_cmd_group = {
|
||||
btrfs_cmd_group_usage, btrfs_cmd_group_info, {
|
||||
{ "subvolume", cmd_subvolume, NULL, &subvolume_cmd_group, 0 },
|
||||
{ "filesystem", cmd_filesystem, NULL, &filesystem_cmd_group, 0 },
|
||||
|
|
4
crc32c.c
4
crc32c.c
|
@ -62,7 +62,7 @@ static uint32_t crc32c_intel_le_hw_byte(uint32_t crc, unsigned char const *data,
|
|||
* Steps through buffer one byte at at time, calculates reflected
|
||||
* crc using table.
|
||||
*/
|
||||
uint32_t crc32c_intel(u32 crc, unsigned char const *data, unsigned long length)
|
||||
static uint32_t crc32c_intel(u32 crc, unsigned char const *data, unsigned long length)
|
||||
{
|
||||
unsigned int iquotient = length / SCALE_F;
|
||||
unsigned int iremainder = length % SCALE_F;
|
||||
|
@ -100,7 +100,7 @@ static void do_cpuid(unsigned int *eax, unsigned int *ebx, unsigned int *ecx,
|
|||
: "eax", "ebx", "ecx", "edx");
|
||||
}
|
||||
|
||||
void crc32c_intel_probe(void)
|
||||
static void crc32c_intel_probe(void)
|
||||
{
|
||||
if (!crc32c_probed) {
|
||||
unsigned int eax, ebx, ecx, edx;
|
||||
|
|
4
ctree.c
4
ctree.c
|
@ -136,8 +136,8 @@ int btrfs_copy_root(struct btrfs_trans_handle *trans,
|
|||
/*
|
||||
* check if the tree block can be shared by multiple trees
|
||||
*/
|
||||
int btrfs_block_can_be_shared(struct btrfs_root *root,
|
||||
struct extent_buffer *buf)
|
||||
static int btrfs_block_can_be_shared(struct btrfs_root *root,
|
||||
struct extent_buffer *buf)
|
||||
{
|
||||
/*
|
||||
* Tree blocks not in refernece counted trees and tree roots
|
||||
|
|
|
@ -792,8 +792,8 @@ void btrfs_remove_free_space_cache(struct btrfs_block_group_cache *block_group)
|
|||
__btrfs_remove_free_space_cache(block_group->free_space_ctl);
|
||||
}
|
||||
|
||||
int btrfs_add_free_space(struct btrfs_free_space_ctl *ctl, u64 offset,
|
||||
u64 bytes)
|
||||
static int btrfs_add_free_space(struct btrfs_free_space_ctl *ctl, u64 offset,
|
||||
u64 bytes)
|
||||
{
|
||||
struct btrfs_free_space *info;
|
||||
int ret = 0;
|
||||
|
|
2
help.c
2
help.c
|
@ -20,7 +20,7 @@
|
|||
|
||||
#include "commands.h"
|
||||
|
||||
extern char argv0_buf[ARGV0_BUF_SIZE];
|
||||
static char argv0_buf[ARGV0_BUF_SIZE];
|
||||
|
||||
#define USAGE_SHORT 1U
|
||||
#define USAGE_LONG 2U
|
||||
|
|
|
@ -73,7 +73,7 @@ struct radix_tree_preload {
|
|||
int nr;
|
||||
struct radix_tree_node *nodes[RADIX_TREE_MAX_PATH];
|
||||
};
|
||||
struct radix_tree_preload radix_tree_preloads = { 0, };
|
||||
static struct radix_tree_preload radix_tree_preloads = { 0, };
|
||||
|
||||
static inline gfp_t root_gfp_mask(struct radix_tree_root *root)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue