commit | 0ff6fabdb0a862b22df4dd75873578392478e64d | [log] [tgz] |
---|---|---|
author | Miao Xie <miaox@cn.fujitsu.com> | Wed Nov 28 10:28:54 2012 +0000 |
committer | Chris Mason <chris.mason@fusionio.com> | Sun Dec 16 20:46:15 2012 -0500 |
tree | cc9766f343a57433232b6cbc0aab8f04024850a8 | |
parent | 797f4277113bff142b6c64a55abaef64d7d67d5c [diff] |
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 <miaox@cn.fujitsu.com> Reviewed-by: Liu Bo <bo.li.liu@oracle.com> Signed-off-by: Chris Mason <chris.mason@fusionio.com>