Re: [PATCH] Bring ext2 reservations code in line with latest ext3

From: Dave Jones
Date: Sun Nov 12 2006 - 23:51:34 EST


On Sun, Nov 12, 2006 at 04:44:07PM -0800, Martin J. Bligh wrote:
> Did a pass through comparing the functions changed by the ext2
> reservations patch to current ext3 code. Fixed up comments and
> typedefs to match latest ext3 code.
>
> Only thing left remaining was the error handling in
> ext2_try_to_allocate_with_rsv, but it may be OK as is.
>
> Signed-off-by: Martin J. Bligh <mbligh@xxxxxxxxxx>

> +/*
> + * rsv_is_empty() -- Check if the reservation window is allocated.
> + * @rsv: given reservation window to check
> + *
> + * returns 1 if the end block is EXT3_RESERVE_WINDOW_NOT_ALLOCATED.
> + */

s/EXT3/EXT2/ ?

> static inline int rsv_is_empty(struct ext2_reserve_window *rsv)
> {
> /* a valid reservation end block could not be 0 */
> return (rsv->_rsv_end == EXT2_RESERVE_WINDOW_NOT_ALLOCATED);
> }

Dave

--
http://www.codemonkey.org.uk
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/