summaryrefslogtreecommitdiff
path: root/fs/btrfs
diff options
context:
space:
mode:
authorAlexandre Oliva <lxoliva@fsfla.org>2011-11-28 14:36:17 (GMT)
committerChris Mason <chris.mason@oracle.com>2012-01-08 00:15:14 (GMT)
commitfc7c1077ceb99c35e5f9d0ce03dc7740565bb2bf (patch)
treeae10e2989f33b45529c2474a5668b5cecc65bf08 /fs/btrfs
parenta5f6f719a5cd7caeee8ed8137cf3f94c3bbebc65 (diff)
downloadlinux-fsl-qoriq-fc7c1077ceb99c35e5f9d0ce03dc7740565bb2bf.tar.xz
Btrfs: don't set up allocation result twice
We store the allocation start and length twice in ins, once right after the other, but with intervening calls that may prevent the duplicate from being optimized out by the compiler. Remove one of the assignments. Signed-off-by: Alexandre Oliva <oliva@lsd.ic.unicamp.br> Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/extent-tree.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index 5ea3acc..37594e4 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -5441,9 +5441,6 @@ checks:
goto loop;
}
- ins->objectid = search_start;
- ins->offset = num_bytes;
-
if (offset < search_start)
btrfs_add_free_space(used_block_group, offset,
search_start - offset);