]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: Fix more false enospc errors and an oops from empty clustering
authorChris Mason <chris.mason@oracle.com>
Fri, 7 Nov 2008 23:17:11 +0000 (18:17 -0500)
committerChris Mason <chris.mason@oracle.com>
Fri, 7 Nov 2008 23:17:11 +0000 (18:17 -0500)
commit4e9fd004a7d00c04b5ee687bac053089106aa700
tree8e9c6e1c1d0810c53a87b0a36adc37037a1fe266
parente4ec9884b126071d39365ff7e066dbc562d603c8
Btrfs: Fix more false enospc errors and an oops from empty clustering

In comes cases the empty cluster was added twice to the total number of
bytes the allocator was trying to find.

With empty clustering on, the hint byte was sometimes outside of the
block group.  Add an extra goto to find the correct block group.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent-tree.c