[PATCH 2/6] UBI: Add accessor functions for WL data structures
Fabio Estevam
festevam at gmail.com
Sun Nov 30 06:55:06 PST 2014
On Sun, Nov 30, 2014 at 10:19 AM, Richard Weinberger <richard at nod.at> wrote:
> +/*
> + * ubi_for_each_free_peb - walk the UBI free RB tree.
> + * @ubi: UBI device description object
> + * @e: a pointer to a ubi_wl_entry to use as cursor
> + * @pos: a pointer to RB-tree entry type to use as a loop counter
tmp_rb instead?
> + */
> +#define ubi_for_each_free_peb(ubi, e, tmp_rb) \
> + ubi_rb_for_each_entry((tmp_rb), (e), &(ubi)->free, u.rb)
> +
> +/*
> + * ubi_for_each_used_peb - walk the UBI used RB tree.
> + * @ubi: UBI device description object
> + * @e: a pointer to a ubi_wl_entry to use as cursor
> + * @pos: a pointer to RB-tree entry type to use as a loop counter
> + */
tmp_rb instead?
> +#define ubi_for_each_used_peb(ubi, e, tmp_rb) \
More information about the linux-mtd
mailing list