mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[PATCH] ext4 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 <[email protected]> Signed-off-by: Hugh Dickins <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
e7dc95db26
commit
b2f2c76d17
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue