Commit 621496f4fd56195b7b273521f467c2945165481f

Authored by David Sterba
1 parent 8cc33e5c19

btrfs: remove unused function prototypes

function prototypes without a body

Signed-off-by: David Sterba <dsterba@suse.cz>

Showing 7 changed files with 0 additions and 43 deletions Side-by-side Diff

... ... @@ -2108,12 +2108,9 @@
2108 2108 u64 num_bytes, u64 *refs, u64 *flags);
2109 2109 int btrfs_pin_extent(struct btrfs_root *root,
2110 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 2111 int btrfs_cross_ref_exist(struct btrfs_trans_handle *trans,
2114 2112 struct btrfs_root *root,
2115 2113 u64 objectid, u64 offset, u64 bytenr);
2116   -int btrfs_copy_pinned(struct btrfs_root *root, struct extent_io_tree *copy);
2117 2114 struct btrfs_block_group_cache *btrfs_lookup_block_group(
2118 2115 struct btrfs_fs_info *info,
2119 2116 u64 bytenr);
2120 2117  
... ... @@ -2463,15 +2460,10 @@
2463 2460 struct btrfs_ordered_sum *sums);
2464 2461 int btrfs_csum_one_bio(struct btrfs_root *root, struct inode *inode,
2465 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 2463 struct btrfs_csum_item *btrfs_lookup_csum(struct btrfs_trans_handle *trans,
2469 2464 struct btrfs_root *root,
2470 2465 struct btrfs_path *path,
2471 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 2467 int btrfs_lookup_csums_range(struct btrfs_root *root, u64 start,
2476 2468 u64 end, struct list_head *list);
2477 2469 /* inode.c */
... ... @@ -2520,7 +2512,6 @@
2520 2512 int btrfs_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf);
2521 2513 int btrfs_readpage(struct file *file, struct page *page);
2522 2514 void btrfs_evict_inode(struct inode *inode);
2523   -void btrfs_put_inode(struct inode *inode);
2524 2515 int btrfs_write_inode(struct inode *inode, struct writeback_control *wbc);
2525 2516 void btrfs_dirty_inode(struct inode *inode);
2526 2517 struct inode *btrfs_alloc_inode(struct super_block *sb);
... ... @@ -2531,8 +2522,6 @@
2531 2522 long btrfs_ioctl_trans_end(struct file *file);
2532 2523 struct inode *btrfs_iget(struct super_block *s, struct btrfs_key *location,
2533 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 2525 struct extent_map *btrfs_get_extent(struct inode *inode, struct page *page,
2537 2526 size_t pg_offset, u64 start, u64 end,
2538 2527 int create);
... ... @@ -2571,7 +2560,6 @@
2571 2560 int btrfs_sync_file(struct file *file, int datasync);
2572 2561 int btrfs_drop_extent_cache(struct inode *inode, u64 start, u64 end,
2573 2562 int skip_pinned);
2574   -int btrfs_check_file(struct btrfs_root *root, struct inode *inode);
2575 2563 extern const struct file_operations btrfs_file_operations;
2576 2564 int btrfs_drop_extents(struct btrfs_trans_handle *trans, struct inode *inode,
2577 2565 u64 start, u64 end, u64 *hint_byte, int drop_cache);
fs/btrfs/delayed-ref.h
... ... @@ -167,11 +167,6 @@
167 167 struct btrfs_delayed_ref_head *
168 168 btrfs_find_delayed_ref_head(struct btrfs_trans_handle *trans, u64 bytenr);
169 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 170 int btrfs_delayed_ref_lock(struct btrfs_trans_handle *trans,
176 171 struct btrfs_delayed_ref_head *head);
177 172 int btrfs_find_ref_cluster(struct btrfs_trans_handle *trans,
... ... @@ -65,25 +65,14 @@
65 65 struct btrfs_root *btrfs_read_fs_root_no_name(struct btrfs_fs_info *fs_info,
66 66 struct btrfs_key *location);
67 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 68 void btrfs_btree_balance_dirty(struct btrfs_root *root, unsigned long nr);
74 69 int btrfs_free_fs_root(struct btrfs_fs_info *fs_info, struct btrfs_root *root);
75 70 void btrfs_mark_buffer_dirty(struct extent_buffer *buf);
76   -void btrfs_mark_buffer_dirty_nonblocking(struct extent_buffer *buf);
77 71 int btrfs_buffer_uptodate(struct extent_buffer *buf, u64 parent_transid);
78 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 73 int btrfs_read_buffer(struct extent_buffer *buf, u64 parent_transid);
82 74 u32 btrfs_csum_data(struct btrfs_root *root, char *data, u32 seed, size_t len);
83 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 76 int btrfs_bio_wq_end_io(struct btrfs_fs_info *info, struct bio *bio,
88 77 int metadata);
89 78 int btrfs_wq_submit_bio(struct btrfs_fs_info *fs_info, struct inode *inode,
fs/btrfs/extent_io.h
... ... @@ -215,14 +215,8 @@
215 215 gfp_t mask);
216 216 int clear_extent_dirty(struct extent_io_tree *tree, u64 start, u64 end,
217 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 218 int set_extent_delalloc(struct extent_io_tree *tree, u64 start, u64 end,
223 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 220 int find_first_extent_bit(struct extent_io_tree *tree, u64 start,
227 221 u64 *start_ret, u64 *end_ret, int bits);
228 222 struct extent_state *find_first_extent_bit_state(struct extent_io_tree *tree,
... ... @@ -298,8 +292,6 @@
298 292 struct extent_buffer *eb);
299 293 int set_extent_buffer_dirty(struct extent_io_tree *tree,
300 294 struct extent_buffer *eb);
301   -int test_extent_buffer_dirty(struct extent_io_tree *tree,
302   - struct extent_buffer *eb);
303 295 int set_extent_buffer_uptodate(struct extent_io_tree *tree,
304 296 struct extent_buffer *eb);
305 297 int clear_extent_buffer_uptodate(struct extent_io_tree *tree,
... ... @@ -317,7 +309,6 @@
317 309 unsigned long *map_start,
318 310 unsigned long *map_len, int km);
319 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 312 int extent_range_uptodate(struct extent_io_tree *tree,
322 313 u64 start, u64 end);
323 314 int extent_clear_unlock_delalloc(struct inode *inode,
fs/btrfs/transaction.h
... ... @@ -101,11 +101,8 @@
101 101 int btrfs_wait_for_commit(struct btrfs_root *root, u64 transid);
102 102 int btrfs_write_and_wait_transaction(struct btrfs_trans_handle *trans,
103 103 struct btrfs_root *root);
104   -int btrfs_commit_tree_roots(struct btrfs_trans_handle *trans,
105   - struct btrfs_root *root);
106 104  
107 105 int btrfs_add_dead_root(struct btrfs_root *root);
108   -int btrfs_drop_dead_root(struct btrfs_root *root);
109 106 int btrfs_defrag_root(struct btrfs_root *root, int cacheonly);
110 107 int btrfs_clean_old_snapshots(struct btrfs_root *root);
111 108 int btrfs_commit_transaction(struct btrfs_trans_handle *trans,
... ... @@ -38,7 +38,6 @@
38 38 struct btrfs_root *root,
39 39 const char *name, int name_len,
40 40 struct inode *inode, u64 dirid);
41   -int btrfs_join_running_log_trans(struct btrfs_root *root);
42 41 int btrfs_end_log_trans(struct btrfs_root *root);
43 42 int btrfs_pin_log_trans(struct btrfs_root *root);
44 43 int btrfs_log_inode_parent(struct btrfs_trans_handle *trans,
... ... @@ -209,8 +209,6 @@
209 209 int btrfs_rm_device(struct btrfs_root *root, char *device_path);
210 210 int btrfs_cleanup_fs_uuids(void);
211 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 212 int btrfs_grow_device(struct btrfs_trans_handle *trans,
215 213 struct btrfs_device *device, u64 new_size);
216 214 struct btrfs_device *btrfs_find_device(struct btrfs_root *root, u64 devid,