]> Git Repo - linux.git/commit - fs/btrfs/file.c
Btrfs: fix off-by-one error of the reserved size of btrfs_allocate()
authorMiao Xie <[email protected]>
Wed, 28 Nov 2012 10:28:54 +0000 (10:28 +0000)
committerChris Mason <[email protected]>
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 <[email protected]>
Reviewed-by: Liu Bo <[email protected]>
Signed-off-by: Chris Mason <[email protected]>
fs/btrfs/file.c
This page took 0.042669 seconds and 4 git commands to generate.