diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2012-11-28 10:28:54 (GMT) |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2012-12-17 01:46:15 (GMT) |
commit | 0ff6fabdb0a862b22df4dd75873578392478e64d (patch) | |
tree | cc9766f343a57433232b6cbc0aab8f04024850a8 /fs/btrfs/hash.h | |
parent | 797f4277113bff142b6c64a55abaef64d7d67d5c (diff) | |
download | linux-fsl-qoriq-0ff6fabdb0a862b22df4dd75873578392478e64d.tar.xz |
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>
Diffstat (limited to 'fs/btrfs/hash.h')
0 files changed, 0 insertions, 0 deletions