]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix merge delalloc logic
authorJosef Bacik <jbacik@fb.com>
Fri, 13 Mar 2015 19:12:08 +0000 (15:12 -0400)
committerChris Mason <clm@fb.com>
Fri, 13 Mar 2015 20:46:59 +0000 (13:46 -0700)
commit1258f3e2eabe048fab655bcce43bec746ae12992
treeecc53b9674656520190d46a3e93f5a5cabfe67a2
parenta861d4e6f9f17116b8edbc983c9a2a90ed623be7
Btrfs: fix merge delalloc logic

My patch to properly count outstanding extents wrt MAX_EXTENT_SIZE introduced a
regression when re-dirtying already dirty areas.  We have logic in split to make
sure we are taking the largest space into account but didn't have it for merge,
so it was sometimes making us think we were turning a tiny extent into a huge
extent, when in reality we already had a huge extent and needed to use the other
side in our logic.  This fixes the regression that was reported by a user on
list.  Thanks,

Reported-by: Markus Trippelsdorf <markus@trippelsdorf.de>
Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/inode.c