summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/xattr.c
diff options
context:
space:
mode:
authorMiao Xie <miaox@cn.fujitsu.com>2012-11-28 11:28:54 +0100
committerChris Mason <chris.mason@fusionio.com>2012-12-17 02:46:15 +0100
commit0ff6fabdb0a862b22df4dd75873578392478e64d (patch)
treecc9766f343a57433232b6cbc0aab8f04024850a8 /fs/btrfs/xattr.c
parentBtrfs: use existing align macros in btrfs_allocate() (diff)
downloadlinux-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