projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Btrfs: don't keep trying to build clusters if we are fragmented
[cascardo/linux.git]
/
fs
/
btrfs
/
ctree.h
diff --git
a/fs/btrfs/ctree.h
b/fs/btrfs/ctree.h
index
78a8f56
..
ced08c9
100644
(file)
--- a/
fs/btrfs/ctree.h
+++ b/
fs/btrfs/ctree.h
@@
-1232,6
+1232,9
@@
struct btrfs_free_cluster {
/* first extent starting offset */
u64 window_start;
+ /* We did a full search and couldn't create a cluster */
+ bool fragmented;
+
struct btrfs_block_group_cache *block_group;
/*
* when a cluster is allocated from a block group, we put the