]> err.no Git - linux-2.6/commit
[PATCH] ext3 balloc: fix off-by-one against rsv_end
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)
commitff50dc562bf6de00fec264b11531e2745209ba12
treec866557dfe97498e213e5a905f42834b51f82aed
parent1650242324a0c19d629a8be0d5a8ecdc174d31f8
[PATCH] ext3 balloc: fix off-by-one against rsv_end

rsv_end is the last block within the reservation, so alloc_new_reservation
should accept start_block == rsv_end as success.

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