[PATCH] ext3 balloc: fix off-by-one against grp_goal
authorHugh Dickins <hugh@veritas.com>
Thu, 7 Dec 2006 04:41:25 +0000 (20:41 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Thu, 7 Dec 2006 16:39:48 +0000 (08:39 -0800)
commit1650242324a0c19d629a8be0d5a8ecdc174d31f8
treeede667fcb170d58750794b5b1f7baade4d0ba552
parentef5036782e619ab394daaec5c00876fa6b17d7a1
[PATCH] ext3 balloc: fix off-by-one against grp_goal

grp_goal 0 is a genuine goal (unlike -1), so ext3_try_to_allocate_with_rsv
should treat it as such.

Signed-off-by: Mingming Cao <cmm@us.ibm.com>
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Cc: <linux-ext4@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/ext3/balloc.c