diff options
author | Eric Sandeen <sandeen@redhat.com> | 2013-04-25 16:41:01 -0400 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2013-05-06 15:55:23 -0400 |
commit | 48a3b6366f6913683563d934eb16fea67dead9c1 (patch) | |
tree | eb26170d3a5ddb6f81ae612db21fb8fba14e655d /fs/btrfs/raid56.c | |
parent | 634554dc0acfc8753c05e432b2fdb34b0be89c78 (diff) |
btrfs: make static code static & remove dead code
Big patch, but all it does is add statics to functions which
are in fact static, then remove the associated dead-code fallout.
removed functions:
btrfs_iref_to_path()
__btrfs_lookup_delayed_deletion_item()
__btrfs_search_delayed_insertion_item()
__btrfs_search_delayed_deletion_item()
find_eb_for_page()
btrfs_find_block_group()
range_straddles_pages()
extent_range_uptodate()
btrfs_file_extent_length()
btrfs_scrub_cancel_devid()
btrfs_start_transaction_lflush()
btrfs_print_tree() is left because it is used for debugging.
btrfs_start_transaction_lflush() and btrfs_reada_detach() are
left for symmetry.
ulist.c functions are left, another patch will take care of those.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs/btrfs/raid56.c')
-rw-r--r-- | fs/btrfs/raid56.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/fs/btrfs/raid56.c b/fs/btrfs/raid56.c index 9a79fb790adb..0740621daf6c 100644 --- a/fs/btrfs/raid56.c +++ b/fs/btrfs/raid56.c | |||
@@ -410,7 +410,7 @@ static void remove_rbio_from_cache(struct btrfs_raid_bio *rbio) | |||
410 | /* | 410 | /* |
411 | * remove everything in the cache | 411 | * remove everything in the cache |
412 | */ | 412 | */ |
413 | void btrfs_clear_rbio_cache(struct btrfs_fs_info *info) | 413 | static void btrfs_clear_rbio_cache(struct btrfs_fs_info *info) |
414 | { | 414 | { |
415 | struct btrfs_stripe_hash_table *table; | 415 | struct btrfs_stripe_hash_table *table; |
416 | unsigned long flags; | 416 | unsigned long flags; |
@@ -1010,12 +1010,12 @@ static int alloc_rbio_parity_pages(struct btrfs_raid_bio *rbio) | |||
1010 | * this will try to merge into existing bios if possible, and returns | 1010 | * this will try to merge into existing bios if possible, and returns |
1011 | * zero if all went well. | 1011 | * zero if all went well. |
1012 | */ | 1012 | */ |
1013 | int rbio_add_io_page(struct btrfs_raid_bio *rbio, | 1013 | static int rbio_add_io_page(struct btrfs_raid_bio *rbio, |
1014 | struct bio_list *bio_list, | 1014 | struct bio_list *bio_list, |
1015 | struct page *page, | 1015 | struct page *page, |
1016 | int stripe_nr, | 1016 | int stripe_nr, |
1017 | unsigned long page_index, | 1017 | unsigned long page_index, |
1018 | unsigned long bio_max_len) | 1018 | unsigned long bio_max_len) |
1019 | { | 1019 | { |
1020 | struct bio *last = bio_list->tail; | 1020 | struct bio *last = bio_list->tail; |
1021 | u64 last_end = 0; | 1021 | u64 last_end = 0; |