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/inode.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/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 0eab7b67e109..ec63d7af3460 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -103,6 +103,8 @@ static struct extent_map *create_pinned_em(struct inode *inode, u64 start, | |||
103 | u64 orig_block_len, u64 ram_bytes, | 103 | u64 orig_block_len, u64 ram_bytes, |
104 | int type); | 104 | int type); |
105 | 105 | ||
106 | static int btrfs_dirty_inode(struct inode *inode); | ||
107 | |||
106 | static int btrfs_init_inode_security(struct btrfs_trans_handle *trans, | 108 | static int btrfs_init_inode_security(struct btrfs_trans_handle *trans, |
107 | struct inode *inode, struct inode *dir, | 109 | struct inode *inode, struct inode *dir, |
108 | const struct qstr *qstr) | 110 | const struct qstr *qstr) |
@@ -3024,7 +3026,8 @@ int btrfs_orphan_add(struct btrfs_trans_handle *trans, struct inode *inode) | |||
3024 | * We have done the truncate/delete so we can go ahead and remove the orphan | 3026 | * We have done the truncate/delete so we can go ahead and remove the orphan |
3025 | * item for this particular inode. | 3027 | * item for this particular inode. |
3026 | */ | 3028 | */ |
3027 | int btrfs_orphan_del(struct btrfs_trans_handle *trans, struct inode *inode) | 3029 | static int btrfs_orphan_del(struct btrfs_trans_handle *trans, |
3030 | struct inode *inode) | ||
3028 | { | 3031 | { |
3029 | struct btrfs_root *root = BTRFS_I(inode)->root; | 3032 | struct btrfs_root *root = BTRFS_I(inode)->root; |
3030 | int delete_item = 0; | 3033 | int delete_item = 0; |
@@ -5342,7 +5345,7 @@ int btrfs_write_inode(struct inode *inode, struct writeback_control *wbc) | |||
5342 | * FIXME, needs more benchmarking...there are no reasons other than performance | 5345 | * FIXME, needs more benchmarking...there are no reasons other than performance |
5343 | * to keep or drop this code. | 5346 | * to keep or drop this code. |
5344 | */ | 5347 | */ |
5345 | int btrfs_dirty_inode(struct inode *inode) | 5348 | static int btrfs_dirty_inode(struct inode *inode) |
5346 | { | 5349 | { |
5347 | struct btrfs_root *root = BTRFS_I(inode)->root; | 5350 | struct btrfs_root *root = BTRFS_I(inode)->root; |
5348 | struct btrfs_trans_handle *trans; | 5351 | struct btrfs_trans_handle *trans; |
@@ -7437,8 +7440,8 @@ static int btrfs_writepage(struct page *page, struct writeback_control *wbc) | |||
7437 | return extent_write_full_page(tree, page, btrfs_get_extent, wbc); | 7440 | return extent_write_full_page(tree, page, btrfs_get_extent, wbc); |
7438 | } | 7441 | } |
7439 | 7442 | ||
7440 | int btrfs_writepages(struct address_space *mapping, | 7443 | static int btrfs_writepages(struct address_space *mapping, |
7441 | struct writeback_control *wbc) | 7444 | struct writeback_control *wbc) |
7442 | { | 7445 | { |
7443 | struct extent_io_tree *tree; | 7446 | struct extent_io_tree *tree; |
7444 | 7447 | ||