Btrfs: fix off-by-one error of the reserved size of btrfs_allocate()
authorMiao Xie <miaox@cn.fujitsu.com>
Wed, 28 Nov 2012 10:28:54 +0000 (10:28 +0000)
committerChris Mason <chris.mason@fusionio.com>
Mon, 17 Dec 2012 01:46:15 +0000 (20:46 -0500)
commit0ff6fabdb0a862b22df4dd75873578392478e64d
treecc9766f343a57433232b6cbc0aab8f04024850a8
parent797f4277113bff142b6c64a55abaef64d7d67d5c
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>
fs/btrfs/file.c
This page took 0.024583 seconds and 5 git commands to generate.