diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2012-11-28 11:28:54 +0100 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2012-12-17 02:46:15 +0100 |
commit | 0ff6fabdb0a862b22df4dd75873578392478e64d (patch) | |
tree | cc9766f343a57433232b6cbc0aab8f04024850a8 /fs/btrfs/xattr.c | |
parent | Btrfs: use existing align macros in btrfs_allocate() (diff) | |
download | linux-0ff6fabdb0a862b22df4dd75873578392478e64d.tar.xz linux-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/xattr.c')
0 files changed, 0 insertions, 0 deletions