]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: reduce mount -o ssd CPU usage
authorChris Mason <chris.mason@oracle.com>
Mon, 18 May 2009 14:41:58 +0000 (10:41 -0400)
committerChris Mason <chris.mason@oracle.com>
Wed, 10 Jun 2009 15:29:48 +0000 (11:29 -0400)
commitaa2f106cf95a551f6ff1c9b3e432d8127efa125b
tree15e54377cb925312ce0332a6520d78ae99b9fafc
parent31d73a84df35df4d4d5656a837146d78a2b27203
Btrfs: reduce mount -o ssd CPU usage

The block allocator in SSD mode will try to find groups of free blocks
that are close together.  This commit makes it loop less on a given
group size before bumping it.

The end result is that we are less likely to fill small holes in the
available free space, but we don't waste as much CPU building the
large cluster used by ssd mode.

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