]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: reset cluster's max_size when creating bitmap
authorAlexandre Oliva <oliva@lsd.ic.unicamp.br>
Wed, 30 Nov 2011 18:43:00 +0000 (13:43 -0500)
committerChris Mason <chris.mason@oracle.com>
Wed, 30 Nov 2011 18:43:00 +0000 (13:43 -0500)
commit8c6d9150e0dff796c6a645b161e7b6dfb72d93c2
tree945f0f759dc1c32e091edfe1432f383153d76d19
parent8637d7e1e551dfcc2d4c9b019598f8afbe13430e
Btrfs: reset cluster's max_size when creating bitmap

The field that indicates the size of the largest contiguous chunk of
free space in the cluster is not initialized when setting up bitmaps,
it's only increased when we find a larger contiguous chunk.  We end up
retaining a larger value than appropriate for highly-fragmented
clusters, which may cause pointless searches for large contiguous
groups, and even cause clusters that do not meet the density
requirements to be set up.

Signed-off-by: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/free-space-cache.c