[PATCH] ext4 balloc: fix off-by-one against grp_goal
commite7dc95db2695dc92b223cdc49227ac57e63406d2
authorHugh Dickins <hugh@veritas.com>
Thu, 7 Dec 2006 04:39:19 +0000 (6 20:39 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Thu, 7 Dec 2006 16:39:42 +0000 (7 08:39 -0800)
treea988c2c6b0c8b3c0bf357ed711b57c0ba1045aa1
parentcd16c8f72aaaf2af06969d1441051b90010f7041
[PATCH] ext4 balloc: fix off-by-one against grp_goal

grp_goal 0 is a genuine goal (unlike -1), so ext4_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/ext4/balloc.c