------------------------------------------------------ Subject: ext2 balloc: fix off-by-one against rsv_end From: Hugh Dickins <[email protected]> rsv_end is the last block within the reservation, so alloc_new_reservation should accept start_block == rsv_end as success. ------------------------------------------------------ Sync up a ext2 reservation fix in ext4 Signed-Off-By: Mingming Cao <[email protected]> --- linux-2.6.19-rc5-cmm/fs/ext4/balloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN fs/ext4/balloc.c~ext4-balloc-fix-off-by-one-against-rsv_end fs/ext4/balloc.c --- linux-2.6.19-rc5/fs/ext4/balloc.c~ext4-balloc-fix-off-by-one-against-rsv_end 2006-11-28 19:37:15.000000000 -0800 +++ linux-2.6.19-rc5-cmm/fs/ext4/balloc.c 2006-11-28 19:37:15.000000000 -0800 @@ -1165,7 +1165,7 @@ retry: * check if the first free block is within the * free space we just reserved */ - if (start_block >= my_rsv->rsv_start && start_block < my_rsv->rsv_end) + if (start_block >= my_rsv->rsv_start && start_block <= my_rsv->rsv_end) return 0; /* success */ /* * if the first free bit we found is out of the reservable space _ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- References:
- 2.6.19-rc5-mm2
- From: Andrew Morton <[email protected]>
- Boot failure with ext2 and initrds
- From: [email protected] (Mel Gorman)
- Re: Boot failure with ext2 and initrds
- From: Hugh Dickins <[email protected]>
- Re: Boot failure with ext2 and initrds
- From: Andrew Morton <[email protected]>
- Re: Boot failure with ext2 and initrds
- From: Hugh Dickins <[email protected]>
- Re: Boot failure with ext2 and initrds
- From: Hugh Dickins <[email protected]>
- Re: Boot failure with ext2 and initrds
- From: Andrew Morton <[email protected]>
- Re: Boot failure with ext2 and initrds
- From: Mingming Cao <[email protected]>
- Re: Boot failure with ext2 and initrds
- From: Andrew Morton <[email protected]>
- Re: Boot failure with ext2 and initrds
- From: Mingming Cao <[email protected]>
- Re: Boot failure with ext2 and initrds
- From: Andrew Morton <[email protected]>
- Re: Boot failure with ext2 and initrds
- From: Mingming Cao <[email protected]>
- Re: Boot failure with ext2 and initrds
- From: Andrew Morton <[email protected]>
- Re: Boot failure with ext2 and initrds
- From: Hugh Dickins <[email protected]>
- Re: Boot failure with ext2 and initrds
- From: Mingming Cao <[email protected]>
- Re: Boot failure with ext2 and initrds
- From: Hugh Dickins <[email protected]>
- Re: Boot failure with ext2 and initrds
- From: Mingming Cao <[email protected]>
- Re: Boot failure with ext2 and initrds
- From: Hugh Dickins <[email protected]>
- [PATCH 4/6] ext2 balloc: fix off-by-one against grp_goal
- From: Hugh Dickins <[email protected]>
- 2.6.19-rc5-mm2
- Prev by Date: [PATCH 10/12] ext4 balloc: say rb_entry not list_entry
- Next by Date: Re: Broken commit: [NETFILTER]: ipt_REJECT: remove largely duplicate route_reverse function
- Previous by thread: [PATCH 7/12] ext4 balloc: reset windowsz when full
- Next by thread: [PATCH 5/6] ext2 balloc: say rb_entry not list_entry
- Index(es):