projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c4452b
)
Btrfs: prealloc more blocks for the extent map
author
Chris Mason
<chris.mason@oracle.com>
Sat, 28 Apr 2007 19:17:08 +0000
(15:17 -0400)
committer
David Woodhouse
<dwmw2@hera.kernel.org>
Sat, 28 Apr 2007 19:17:08 +0000
(15:17 -0400)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent-tree.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/extent-tree.c
b/fs/btrfs/extent-tree.c
index 652cf305a9671740e7051c06053316ef315912e6..62051a36664a001e4836c07ba1ba70b7e9670aff 100644
(file)
--- a/
fs/btrfs/extent-tree.c
+++ b/
fs/btrfs/extent-tree.c
@@
-541,7
+541,7
@@
static int find_free_extent(struct btrfs_trans_handle *trans, struct btrfs_root
if (num_blocks == 0) {
fill_prealloc = 1;
num_blocks = 1;
- total_needed =
min(level + 2, BTRFS_MAX_LEVEL
) * 3;
+ total_needed =
(min(level + 1, BTRFS_MAX_LEVEL) + 2
) * 3;
}
find_search_start(root, 0);
if (info->block_group_cache &&