diff options
author | Alexandre Oliva <oliva@lsd.ic.unicamp.br> | 2011-12-08 02:08:40 +0100 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2011-12-08 14:55:40 +0100 |
commit | 274bd4fb3ed6b72c1d77ef8850511f09fc6b8e4d (patch) | |
tree | c9a637653e547f24ed488d0d5956b314b4257597 /Documentation/sysfs-rules.txt | |
parent | Btrfs: try to allocate from cluster even at LOOP_NO_EMPTY_SIZE (diff) | |
download | linux-274bd4fb3ed6b72c1d77ef8850511f09fc6b8e4d.tar.xz linux-274bd4fb3ed6b72c1d77ef8850511f09fc6b8e4d.zip |
Btrfs: try cluster but don't advance in search list
When we find an existing cluster, we switch to its block group as the
current block group, possibly skipping multiple blocks in the process.
Furthermore, under heavy contention, multiple threads may fail to
allocate from a cluster and then release just-created clusters just to
proceed to create new ones in a different block group.
This patch tries to allocate from an existing cluster regardless of its
block group, and doesn't switch to that group, instead proceeding to
try to allocate a cluster from the group it was iterating before the
attempt.
Signed-off-by: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'Documentation/sysfs-rules.txt')
0 files changed, 0 insertions, 0 deletions