diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2012-11-28 10:28:54 +0000 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2012-12-16 20:46:15 -0500 |
commit | 0ff6fabdb0a862b22df4dd75873578392478e64d (patch) | |
tree | cc9766f343a57433232b6cbc0aab8f04024850a8 /fs/btrfs/acl.c | |
parent | 797f4277113bff142b6c64a55abaef64d7d67d5c (diff) | |
download | lwn-0ff6fabdb0a862b22df4dd75873578392478e64d.tar.gz lwn-0ff6fabdb0a862b22df4dd75873578392478e64d.zip |
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/acl.c')
0 files changed, 0 insertions, 0 deletions