diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-10-15 16:18:14 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:03:56 -0400 |
commit | 4dc119046d0d8501afa4346472917fb05586ad9c (patch) | |
tree | 712c98f8f66aa1e83020574a19d015df88c5024e /fs/btrfs/ctree.c | |
parent | e19caa5f0e34b571ed0c2617554af5c43cb124d1 (diff) |
Btrfs: Add an extent buffer LRU to reduce radix tree hits
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.c')
-rw-r--r-- | fs/btrfs/ctree.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index 08ddf1873ab1..bef61ee883e1 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c | |||
@@ -88,8 +88,6 @@ static int __btrfs_cow_block(struct btrfs_trans_handle *trans, | |||
88 | if (IS_ERR(cow)) | 88 | if (IS_ERR(cow)) |
89 | return PTR_ERR(cow); | 89 | return PTR_ERR(cow); |
90 | 90 | ||
91 | cow->alloc_addr = (unsigned long)__builtin_return_address(0); | ||
92 | |||
93 | copy_extent_buffer(cow, buf, 0, 0, cow->len); | 91 | copy_extent_buffer(cow, buf, 0, 0, cow->len); |
94 | btrfs_set_header_bytenr(cow, cow->start); | 92 | btrfs_set_header_bytenr(cow, cow->start); |
95 | btrfs_set_header_generation(cow, trans->transid); | 93 | btrfs_set_header_generation(cow, trans->transid); |
@@ -151,7 +149,6 @@ int btrfs_cow_block(struct btrfs_trans_handle *trans, | |||
151 | search_start = buf->start & ~((u64)BTRFS_BLOCK_GROUP_SIZE - 1); | 149 | search_start = buf->start & ~((u64)BTRFS_BLOCK_GROUP_SIZE - 1); |
152 | ret = __btrfs_cow_block(trans, root, buf, parent, | 150 | ret = __btrfs_cow_block(trans, root, buf, parent, |
153 | parent_slot, cow_ret, search_start, 0); | 151 | parent_slot, cow_ret, search_start, 0); |
154 | (*cow_ret)->alloc_addr = (unsigned long)__builtin_return_address(0); | ||
155 | return ret; | 152 | return ret; |
156 | } | 153 | } |
157 | 154 | ||