aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/volumes.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2008-12-02 09:54:17 -0500
committerChris Mason <chris.mason@oracle.com>2008-12-02 09:54:17 -0500
commitb2950863c61bc24cf0f63bc05947d9d50663c4c0 (patch)
tree3005a034713fe86db2d64ab1b21fe8762f6a4b0c /fs/btrfs/volumes.c
parent1ffa4f426c002161b7dbd58b297f5d0680e7dd6a (diff)
Btrfs: make things static and include the right headers
Shut up various sparse warnings about symbols that should be either static or have their declarations in scope. Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r--fs/btrfs/volumes.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index 724ead54529b..769f2c5d9e9e 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -238,7 +238,7 @@ done:
238 return 0; 238 return 0;
239} 239}
240 240
241void pending_bios_fn(struct btrfs_work *work) 241static void pending_bios_fn(struct btrfs_work *work)
242{ 242{
243 struct btrfs_device *device; 243 struct btrfs_device *device;
244 244
@@ -686,7 +686,7 @@ error:
686 return ret; 686 return ret;
687} 687}
688 688
689int btrfs_free_dev_extent(struct btrfs_trans_handle *trans, 689static int btrfs_free_dev_extent(struct btrfs_trans_handle *trans,
690 struct btrfs_device *device, 690 struct btrfs_device *device,
691 u64 start) 691 u64 start)
692{ 692{
@@ -1393,7 +1393,7 @@ error:
1393 goto out; 1393 goto out;
1394} 1394}
1395 1395
1396int noinline btrfs_update_device(struct btrfs_trans_handle *trans, 1396static int noinline btrfs_update_device(struct btrfs_trans_handle *trans,
1397 struct btrfs_device *device) 1397 struct btrfs_device *device)
1398{ 1398{
1399 int ret; 1399 int ret;
@@ -1497,7 +1497,7 @@ static int btrfs_free_chunk(struct btrfs_trans_handle *trans,
1497 return 0; 1497 return 0;
1498} 1498}
1499 1499
1500int btrfs_del_sys_chunk(struct btrfs_root *root, u64 chunk_objectid, u64 1500static int btrfs_del_sys_chunk(struct btrfs_root *root, u64 chunk_objectid, u64
1501 chunk_offset) 1501 chunk_offset)
1502{ 1502{
1503 struct btrfs_super_block *super_copy = &root->fs_info->super_copy; 1503 struct btrfs_super_block *super_copy = &root->fs_info->super_copy;
@@ -1543,7 +1543,7 @@ int btrfs_del_sys_chunk(struct btrfs_root *root, u64 chunk_objectid, u64
1543 return ret; 1543 return ret;
1544} 1544}
1545 1545
1546int btrfs_relocate_chunk(struct btrfs_root *root, 1546static int btrfs_relocate_chunk(struct btrfs_root *root,
1547 u64 chunk_tree, u64 chunk_objectid, 1547 u64 chunk_tree, u64 chunk_objectid,
1548 u64 chunk_offset) 1548 u64 chunk_offset)
1549{ 1549{
@@ -1884,7 +1884,7 @@ done:
1884 return ret; 1884 return ret;
1885} 1885}
1886 1886
1887int btrfs_add_system_chunk(struct btrfs_trans_handle *trans, 1887static int btrfs_add_system_chunk(struct btrfs_trans_handle *trans,
1888 struct btrfs_root *root, 1888 struct btrfs_root *root,
1889 struct btrfs_key *key, 1889 struct btrfs_key *key,
1890 struct btrfs_chunk *chunk, int item_size) 1890 struct btrfs_chunk *chunk, int item_size)