]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: advance window_start if we're using a bitmap
authorJosef Bacik <josef@redhat.com>
Thu, 26 Jan 2012 20:01:12 +0000 (15:01 -0500)
committerChris Mason <chris.mason@oracle.com>
Thu, 26 Jan 2012 20:01:12 +0000 (15:01 -0500)
commit414cc7930c1c5d375feba150067c14c90a387666
tree47c00ad85dced3c4712b03de926b77c4aad99a77
parent4acf4866f013fef5788dd0e1bb29cb7ed8006561
Btrfs: advance window_start if we're using a bitmap

If we span a long area in a bitmap we could end up taking a lot of time
searching to the next free area if we're searching from the original
window_start, so advance window_start in order to make sure we don't do any
superficial searching.  Thanks,

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