]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: avoid allocation clusters that are too spread out
authorChris Mason <chris.mason@oracle.com>
Tue, 9 Jun 2009 22:35:15 +0000 (18:35 -0400)
committerChris Mason <chris.mason@oracle.com>
Wed, 10 Jun 2009 15:29:51 +0000 (11:29 -0400)
commit5f908b1ffadb76aa501f19b8996addc5ec91e000
tree54be031aa42874f827e1c7d2aa79f1ec54b36a33
parent95d50c187dc3a7de8fc7e99886edaa5b2ea6b08f
Btrfs: avoid allocation clusters that are too spread out

In SSD mode for data, and all the time for metadata the allocator
will try to find a cluster of nearby blocks for allocations.  This
commit adds extra checks to make sure that each free block in the
cluster is close to the last one.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/free-space-cache.c