summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorJosef Bacik2012-01-18 16:56:06 +0100
committerChris Mason2012-03-26 20:42:51 +0200
commit81c9ad237c604adec79fd4d4034264c6669e0ab3 (patch)
tree673fe5a1c491d43fae6f4309aa699b4e328d534e /fs/btrfs/ctree.h
parentBtrfs: remove the ideal caching code (diff)
downloadkernel-qcow2-linux-81c9ad237c604adec79fd4d4034264c6669e0ab3.tar.gz
kernel-qcow2-linux-81c9ad237c604adec79fd4d4034264c6669e0ab3.tar.xz
kernel-qcow2-linux-81c9ad237c604adec79fd4d4034264c6669e0ab3.zip
Btrfs: remove search_start and search_end from find_free_extent and callers
We have been passing nothing but (u64)-1 to find_free_extent for search_end in all of the callers, so it's completely useless, and we've always been passing 0 in as search_start, so just remove them as function arguments and move search_start into find_free_extent. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 80b6486fd5e6..edccc948e877 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -2466,8 +2466,7 @@ int btrfs_reserve_extent(struct btrfs_trans_handle *trans,
struct btrfs_root *root,
u64 num_bytes, u64 min_alloc_size,
u64 empty_size, u64 hint_byte,
- u64 search_end, struct btrfs_key *ins,
- u64 data);
+ struct btrfs_key *ins, u64 data);
int btrfs_inc_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root,
struct extent_buffer *buf, int full_backref, int for_cow);
int btrfs_dec_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root,