From: Miao Xie Date: Wed, 28 Nov 2012 10:28:54 +0000 (+0000) Subject: Btrfs: fix off-by-one error of the reserved size of btrfs_allocate() X-Git-Tag: v3.8-rc1~71^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ff6fabdb0a862b22df4dd75873578392478e64d;p=pandora-kernel.git Btrfs: fix off-by-one error of the reserved size of btrfs_allocate() alloc_end is not the real end of the current extent, it is the start of the next adjoining extent. So we needn't +1 when calculating the size the space that is about to be reserved. Signed-off-by: Miao Xie Reviewed-by: Liu Bo Signed-off-by: Chris Mason --- Reading git-diff-tree failed