diff options
author | David Sterba <dsterba@suse.cz> | 2011-05-04 06:56:49 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2011-05-04 08:01:26 -0400 |
commit | 621496f4fd56195b7b273521f467c2945165481f (patch) | |
tree | c4ae099610e1c43eafd48931aa9d8cac776f8fdb /fs/btrfs | |
parent | 8cc33e5c19bf01c7617608669be8c1b4f663eb2f (diff) |
btrfs: remove unused function prototypes
function prototypes without a body
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'fs/btrfs')
-rw-r--r-- | fs/btrfs/ctree.h | 12 | ||||
-rw-r--r-- | fs/btrfs/delayed-ref.h | 5 | ||||
-rw-r--r-- | fs/btrfs/disk-io.h | 11 | ||||
-rw-r--r-- | fs/btrfs/extent_io.h | 9 | ||||
-rw-r--r-- | fs/btrfs/transaction.h | 3 | ||||
-rw-r--r-- | fs/btrfs/tree-log.h | 1 | ||||
-rw-r--r-- | fs/btrfs/volumes.h | 2 |
7 files changed, 0 insertions, 43 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 3f301f05099d..b66216e636c2 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -2108,12 +2108,9 @@ int btrfs_lookup_extent_info(struct btrfs_trans_handle *trans, | |||
2108 | u64 num_bytes, u64 *refs, u64 *flags); | 2108 | u64 num_bytes, u64 *refs, u64 *flags); |
2109 | int btrfs_pin_extent(struct btrfs_root *root, | 2109 | int btrfs_pin_extent(struct btrfs_root *root, |
2110 | u64 bytenr, u64 num, int reserved); | 2110 | u64 bytenr, u64 num, int reserved); |
2111 | int btrfs_drop_leaf_ref(struct btrfs_trans_handle *trans, | ||
2112 | struct btrfs_root *root, struct extent_buffer *leaf); | ||
2113 | int btrfs_cross_ref_exist(struct btrfs_trans_handle *trans, | 2111 | int btrfs_cross_ref_exist(struct btrfs_trans_handle *trans, |
2114 | struct btrfs_root *root, | 2112 | struct btrfs_root *root, |
2115 | u64 objectid, u64 offset, u64 bytenr); | 2113 | u64 objectid, u64 offset, u64 bytenr); |
2116 | int btrfs_copy_pinned(struct btrfs_root *root, struct extent_io_tree *copy); | ||
2117 | struct btrfs_block_group_cache *btrfs_lookup_block_group( | 2114 | struct btrfs_block_group_cache *btrfs_lookup_block_group( |
2118 | struct btrfs_fs_info *info, | 2115 | struct btrfs_fs_info *info, |
2119 | u64 bytenr); | 2116 | u64 bytenr); |
@@ -2463,15 +2460,10 @@ int btrfs_csum_file_blocks(struct btrfs_trans_handle *trans, | |||
2463 | struct btrfs_ordered_sum *sums); | 2460 | struct btrfs_ordered_sum *sums); |
2464 | int btrfs_csum_one_bio(struct btrfs_root *root, struct inode *inode, | 2461 | int btrfs_csum_one_bio(struct btrfs_root *root, struct inode *inode, |
2465 | struct bio *bio, u64 file_start, int contig); | 2462 | struct bio *bio, u64 file_start, int contig); |
2466 | int btrfs_csum_file_bytes(struct btrfs_root *root, struct inode *inode, | ||
2467 | u64 start, unsigned long len); | ||
2468 | struct btrfs_csum_item *btrfs_lookup_csum(struct btrfs_trans_handle *trans, | 2463 | struct btrfs_csum_item *btrfs_lookup_csum(struct btrfs_trans_handle *trans, |
2469 | struct btrfs_root *root, | 2464 | struct btrfs_root *root, |
2470 | struct btrfs_path *path, | 2465 | struct btrfs_path *path, |
2471 | u64 bytenr, int cow); | 2466 | u64 bytenr, int cow); |
2472 | int btrfs_csum_truncate(struct btrfs_trans_handle *trans, | ||
2473 | struct btrfs_root *root, struct btrfs_path *path, | ||
2474 | u64 isize); | ||
2475 | int btrfs_lookup_csums_range(struct btrfs_root *root, u64 start, | 2467 | int btrfs_lookup_csums_range(struct btrfs_root *root, u64 start, |
2476 | u64 end, struct list_head *list); | 2468 | u64 end, struct list_head *list); |
2477 | /* inode.c */ | 2469 | /* inode.c */ |
@@ -2520,7 +2512,6 @@ unsigned long btrfs_force_ra(struct address_space *mapping, | |||
2520 | int btrfs_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf); | 2512 | int btrfs_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf); |
2521 | int btrfs_readpage(struct file *file, struct page *page); | 2513 | int btrfs_readpage(struct file *file, struct page *page); |
2522 | void btrfs_evict_inode(struct inode *inode); | 2514 | void btrfs_evict_inode(struct inode *inode); |
2523 | void btrfs_put_inode(struct inode *inode); | ||
2524 | int btrfs_write_inode(struct inode *inode, struct writeback_control *wbc); | 2515 | int btrfs_write_inode(struct inode *inode, struct writeback_control *wbc); |
2525 | void btrfs_dirty_inode(struct inode *inode); | 2516 | void btrfs_dirty_inode(struct inode *inode); |
2526 | struct inode *btrfs_alloc_inode(struct super_block *sb); | 2517 | struct inode *btrfs_alloc_inode(struct super_block *sb); |
@@ -2531,8 +2522,6 @@ void btrfs_destroy_cachep(void); | |||
2531 | long btrfs_ioctl_trans_end(struct file *file); | 2522 | long btrfs_ioctl_trans_end(struct file *file); |
2532 | struct inode *btrfs_iget(struct super_block *s, struct btrfs_key *location, | 2523 | struct inode *btrfs_iget(struct super_block *s, struct btrfs_key *location, |
2533 | struct btrfs_root *root, int *was_new); | 2524 | struct btrfs_root *root, int *was_new); |
2534 | int btrfs_commit_write(struct file *file, struct page *page, | ||
2535 | unsigned from, unsigned to); | ||
2536 | struct extent_map *btrfs_get_extent(struct inode *inode, struct page *page, | 2525 | struct extent_map *btrfs_get_extent(struct inode *inode, struct page *page, |
2537 | size_t pg_offset, u64 start, u64 end, | 2526 | size_t pg_offset, u64 start, u64 end, |
2538 | int create); | 2527 | int create); |
@@ -2571,7 +2560,6 @@ void btrfs_inherit_iflags(struct inode *inode, struct inode *dir); | |||
2571 | int btrfs_sync_file(struct file *file, int datasync); | 2560 | int btrfs_sync_file(struct file *file, int datasync); |
2572 | int btrfs_drop_extent_cache(struct inode *inode, u64 start, u64 end, | 2561 | int btrfs_drop_extent_cache(struct inode *inode, u64 start, u64 end, |
2573 | int skip_pinned); | 2562 | int skip_pinned); |
2574 | int btrfs_check_file(struct btrfs_root *root, struct inode *inode); | ||
2575 | extern const struct file_operations btrfs_file_operations; | 2563 | extern const struct file_operations btrfs_file_operations; |
2576 | int btrfs_drop_extents(struct btrfs_trans_handle *trans, struct inode *inode, | 2564 | int btrfs_drop_extents(struct btrfs_trans_handle *trans, struct inode *inode, |
2577 | u64 start, u64 end, u64 *hint_byte, int drop_cache); | 2565 | u64 start, u64 end, u64 *hint_byte, int drop_cache); |
diff --git a/fs/btrfs/delayed-ref.h b/fs/btrfs/delayed-ref.h index 50e3cf92fbda..946ed71ab84f 100644 --- a/fs/btrfs/delayed-ref.h +++ b/fs/btrfs/delayed-ref.h | |||
@@ -167,11 +167,6 @@ int btrfs_add_delayed_extent_op(struct btrfs_trans_handle *trans, | |||
167 | struct btrfs_delayed_ref_head * | 167 | struct btrfs_delayed_ref_head * |
168 | btrfs_find_delayed_ref_head(struct btrfs_trans_handle *trans, u64 bytenr); | 168 | btrfs_find_delayed_ref_head(struct btrfs_trans_handle *trans, u64 bytenr); |
169 | int btrfs_delayed_ref_pending(struct btrfs_trans_handle *trans, u64 bytenr); | 169 | int btrfs_delayed_ref_pending(struct btrfs_trans_handle *trans, u64 bytenr); |
170 | int btrfs_update_delayed_ref(struct btrfs_trans_handle *trans, | ||
171 | u64 bytenr, u64 num_bytes, u64 orig_parent, | ||
172 | u64 parent, u64 orig_ref_root, u64 ref_root, | ||
173 | u64 orig_ref_generation, u64 ref_generation, | ||
174 | u64 owner_objectid, int pin); | ||
175 | int btrfs_delayed_ref_lock(struct btrfs_trans_handle *trans, | 170 | int btrfs_delayed_ref_lock(struct btrfs_trans_handle *trans, |
176 | struct btrfs_delayed_ref_head *head); | 171 | struct btrfs_delayed_ref_head *head); |
177 | int btrfs_find_ref_cluster(struct btrfs_trans_handle *trans, | 172 | int btrfs_find_ref_cluster(struct btrfs_trans_handle *trans, |
diff --git a/fs/btrfs/disk-io.h b/fs/btrfs/disk-io.h index 07b20dc2fd95..758f3ca614ee 100644 --- a/fs/btrfs/disk-io.h +++ b/fs/btrfs/disk-io.h | |||
@@ -65,25 +65,14 @@ struct btrfs_root *btrfs_read_fs_root_no_radix(struct btrfs_root *tree_root, | |||
65 | struct btrfs_root *btrfs_read_fs_root_no_name(struct btrfs_fs_info *fs_info, | 65 | struct btrfs_root *btrfs_read_fs_root_no_name(struct btrfs_fs_info *fs_info, |
66 | struct btrfs_key *location); | 66 | struct btrfs_key *location); |
67 | int btrfs_cleanup_fs_roots(struct btrfs_fs_info *fs_info); | 67 | int btrfs_cleanup_fs_roots(struct btrfs_fs_info *fs_info); |
68 | int btrfs_insert_dev_radix(struct btrfs_root *root, | ||
69 | struct block_device *bdev, | ||
70 | u64 device_id, | ||
71 | u64 block_start, | ||
72 | u64 num_blocks); | ||
73 | void btrfs_btree_balance_dirty(struct btrfs_root *root, unsigned long nr); | 68 | void btrfs_btree_balance_dirty(struct btrfs_root *root, unsigned long nr); |
74 | int btrfs_free_fs_root(struct btrfs_fs_info *fs_info, struct btrfs_root *root); | 69 | int btrfs_free_fs_root(struct btrfs_fs_info *fs_info, struct btrfs_root *root); |
75 | void btrfs_mark_buffer_dirty(struct extent_buffer *buf); | 70 | void btrfs_mark_buffer_dirty(struct extent_buffer *buf); |
76 | void btrfs_mark_buffer_dirty_nonblocking(struct extent_buffer *buf); | ||
77 | int btrfs_buffer_uptodate(struct extent_buffer *buf, u64 parent_transid); | 71 | int btrfs_buffer_uptodate(struct extent_buffer *buf, u64 parent_transid); |
78 | int btrfs_set_buffer_uptodate(struct extent_buffer *buf); | 72 | int btrfs_set_buffer_uptodate(struct extent_buffer *buf); |
79 | int wait_on_tree_block_writeback(struct btrfs_root *root, | ||
80 | struct extent_buffer *buf); | ||
81 | int btrfs_read_buffer(struct extent_buffer *buf, u64 parent_transid); | 73 | int btrfs_read_buffer(struct extent_buffer *buf, u64 parent_transid); |
82 | u32 btrfs_csum_data(struct btrfs_root *root, char *data, u32 seed, size_t len); | 74 | u32 btrfs_csum_data(struct btrfs_root *root, char *data, u32 seed, size_t len); |
83 | void btrfs_csum_final(u32 crc, char *result); | 75 | void btrfs_csum_final(u32 crc, char *result); |
84 | int btrfs_open_device(struct btrfs_device *dev); | ||
85 | int btrfs_verify_block_csum(struct btrfs_root *root, | ||
86 | struct extent_buffer *buf); | ||
87 | int btrfs_bio_wq_end_io(struct btrfs_fs_info *info, struct bio *bio, | 76 | int btrfs_bio_wq_end_io(struct btrfs_fs_info *info, struct bio *bio, |
88 | int metadata); | 77 | int metadata); |
89 | int btrfs_wq_submit_bio(struct btrfs_fs_info *fs_info, struct inode *inode, | 78 | int btrfs_wq_submit_bio(struct btrfs_fs_info *fs_info, struct inode *inode, |
diff --git a/fs/btrfs/extent_io.h b/fs/btrfs/extent_io.h index 3c3be74c934e..d1c5a57c9984 100644 --- a/fs/btrfs/extent_io.h +++ b/fs/btrfs/extent_io.h | |||
@@ -215,14 +215,8 @@ int set_extent_dirty(struct extent_io_tree *tree, u64 start, u64 end, | |||
215 | gfp_t mask); | 215 | gfp_t mask); |
216 | int clear_extent_dirty(struct extent_io_tree *tree, u64 start, u64 end, | 216 | int clear_extent_dirty(struct extent_io_tree *tree, u64 start, u64 end, |
217 | gfp_t mask); | 217 | gfp_t mask); |
218 | int clear_extent_ordered(struct extent_io_tree *tree, u64 start, u64 end, | ||
219 | gfp_t mask); | ||
220 | int clear_extent_ordered_metadata(struct extent_io_tree *tree, u64 start, | ||
221 | u64 end, gfp_t mask); | ||
222 | int set_extent_delalloc(struct extent_io_tree *tree, u64 start, u64 end, | 218 | int set_extent_delalloc(struct extent_io_tree *tree, u64 start, u64 end, |
223 | struct extent_state **cached_state, gfp_t mask); | 219 | struct extent_state **cached_state, gfp_t mask); |
224 | int set_extent_ordered(struct extent_io_tree *tree, u64 start, u64 end, | ||
225 | gfp_t mask); | ||
226 | int find_first_extent_bit(struct extent_io_tree *tree, u64 start, | 220 | int find_first_extent_bit(struct extent_io_tree *tree, u64 start, |
227 | u64 *start_ret, u64 *end_ret, int bits); | 221 | u64 *start_ret, u64 *end_ret, int bits); |
228 | struct extent_state *find_first_extent_bit_state(struct extent_io_tree *tree, | 222 | struct extent_state *find_first_extent_bit_state(struct extent_io_tree *tree, |
@@ -298,8 +292,6 @@ int clear_extent_buffer_dirty(struct extent_io_tree *tree, | |||
298 | struct extent_buffer *eb); | 292 | struct extent_buffer *eb); |
299 | int set_extent_buffer_dirty(struct extent_io_tree *tree, | 293 | int set_extent_buffer_dirty(struct extent_io_tree *tree, |
300 | struct extent_buffer *eb); | 294 | struct extent_buffer *eb); |
301 | int test_extent_buffer_dirty(struct extent_io_tree *tree, | ||
302 | struct extent_buffer *eb); | ||
303 | int set_extent_buffer_uptodate(struct extent_io_tree *tree, | 295 | int set_extent_buffer_uptodate(struct extent_io_tree *tree, |
304 | struct extent_buffer *eb); | 296 | struct extent_buffer *eb); |
305 | int clear_extent_buffer_uptodate(struct extent_io_tree *tree, | 297 | int clear_extent_buffer_uptodate(struct extent_io_tree *tree, |
@@ -317,7 +309,6 @@ int map_private_extent_buffer(struct extent_buffer *eb, unsigned long offset, | |||
317 | unsigned long *map_start, | 309 | unsigned long *map_start, |
318 | unsigned long *map_len, int km); | 310 | unsigned long *map_len, int km); |
319 | void unmap_extent_buffer(struct extent_buffer *eb, char *token, int km); | 311 | void unmap_extent_buffer(struct extent_buffer *eb, char *token, int km); |
320 | int release_extent_buffer_tail_pages(struct extent_buffer *eb); | ||
321 | int extent_range_uptodate(struct extent_io_tree *tree, | 312 | int extent_range_uptodate(struct extent_io_tree *tree, |
322 | u64 start, u64 end); | 313 | u64 start, u64 end); |
323 | int extent_clear_unlock_delalloc(struct inode *inode, | 314 | int extent_clear_unlock_delalloc(struct inode *inode, |
diff --git a/fs/btrfs/transaction.h b/fs/btrfs/transaction.h index e441acc6c584..000a41008c3b 100644 --- a/fs/btrfs/transaction.h +++ b/fs/btrfs/transaction.h | |||
@@ -101,11 +101,8 @@ struct btrfs_trans_handle *btrfs_start_ioctl_transaction(struct btrfs_root *r, | |||
101 | int btrfs_wait_for_commit(struct btrfs_root *root, u64 transid); | 101 | int btrfs_wait_for_commit(struct btrfs_root *root, u64 transid); |
102 | int btrfs_write_and_wait_transaction(struct btrfs_trans_handle *trans, | 102 | int btrfs_write_and_wait_transaction(struct btrfs_trans_handle *trans, |
103 | struct btrfs_root *root); | 103 | struct btrfs_root *root); |
104 | int btrfs_commit_tree_roots(struct btrfs_trans_handle *trans, | ||
105 | struct btrfs_root *root); | ||
106 | 104 | ||
107 | int btrfs_add_dead_root(struct btrfs_root *root); | 105 | int btrfs_add_dead_root(struct btrfs_root *root); |
108 | int btrfs_drop_dead_root(struct btrfs_root *root); | ||
109 | int btrfs_defrag_root(struct btrfs_root *root, int cacheonly); | 106 | int btrfs_defrag_root(struct btrfs_root *root, int cacheonly); |
110 | int btrfs_clean_old_snapshots(struct btrfs_root *root); | 107 | int btrfs_clean_old_snapshots(struct btrfs_root *root); |
111 | int btrfs_commit_transaction(struct btrfs_trans_handle *trans, | 108 | int btrfs_commit_transaction(struct btrfs_trans_handle *trans, |
diff --git a/fs/btrfs/tree-log.h b/fs/btrfs/tree-log.h index 3dfae84c8cc8..2270ac58d746 100644 --- a/fs/btrfs/tree-log.h +++ b/fs/btrfs/tree-log.h | |||
@@ -38,7 +38,6 @@ int btrfs_del_inode_ref_in_log(struct btrfs_trans_handle *trans, | |||
38 | struct btrfs_root *root, | 38 | struct btrfs_root *root, |
39 | const char *name, int name_len, | 39 | const char *name, int name_len, |
40 | struct inode *inode, u64 dirid); | 40 | struct inode *inode, u64 dirid); |
41 | int btrfs_join_running_log_trans(struct btrfs_root *root); | ||
42 | int btrfs_end_log_trans(struct btrfs_root *root); | 41 | int btrfs_end_log_trans(struct btrfs_root *root); |
43 | int btrfs_pin_log_trans(struct btrfs_root *root); | 42 | int btrfs_pin_log_trans(struct btrfs_root *root); |
44 | int btrfs_log_inode_parent(struct btrfs_trans_handle *trans, | 43 | int btrfs_log_inode_parent(struct btrfs_trans_handle *trans, |
diff --git a/fs/btrfs/volumes.h b/fs/btrfs/volumes.h index cc2eadaf7a27..036b276b4860 100644 --- a/fs/btrfs/volumes.h +++ b/fs/btrfs/volumes.h | |||
@@ -209,8 +209,6 @@ int btrfs_add_device(struct btrfs_trans_handle *trans, | |||
209 | int btrfs_rm_device(struct btrfs_root *root, char *device_path); | 209 | int btrfs_rm_device(struct btrfs_root *root, char *device_path); |
210 | int btrfs_cleanup_fs_uuids(void); | 210 | int btrfs_cleanup_fs_uuids(void); |
211 | int btrfs_num_copies(struct btrfs_mapping_tree *map_tree, u64 logical, u64 len); | 211 | int btrfs_num_copies(struct btrfs_mapping_tree *map_tree, u64 logical, u64 len); |
212 | int btrfs_unplug_page(struct btrfs_mapping_tree *map_tree, | ||
213 | u64 logical, struct page *page); | ||
214 | int btrfs_grow_device(struct btrfs_trans_handle *trans, | 212 | int btrfs_grow_device(struct btrfs_trans_handle *trans, |
215 | struct btrfs_device *device, u64 new_size); | 213 | struct btrfs_device *device, u64 new_size); |
216 | struct btrfs_device *btrfs_find_device(struct btrfs_root *root, u64 devid, | 214 | struct btrfs_device *btrfs_find_device(struct btrfs_root *root, u64 devid, |