[PATCH] ext4 balloc: fix off-by-one against rsv_end
[pandora-kernel.git] / fs / ext4 / balloc.c
index 2bcca52..c5589b3 100644 (file)
@@ -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