btrfs: Fix early enospc because 'unused' calculated with wrong sign.
authorArne Jansen <sensille@gmx.net>
Fri, 12 Nov 2010 23:17:56 +0000 (23:17 +0000)
committerChris Mason <chris.mason@oracle.com>
Mon, 22 Nov 2010 03:26:04 +0000 (22:26 -0500)
commit6f33434850ed87dc5e56b60ebbad3d3cf405f296
treee70433c2c1fe59180bb8a92341f73931eff7ddb0
parente65e1535542931e51189832264cd282e5899e4b9
btrfs: Fix early enospc because 'unused' calculated with wrong sign.

'unused' calculated with wrong sign in reserve_metadata_bytes().
This might have lead to unwanted over-reservations.

Signed-off-by: Arne Jansen <sensille@gmx.net>
Reviewed-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent-tree.c