From: Richard Weinberger <richard@nod.at>
To: Fabio Estevam <festevam@gmail.com>
Cc: Artem Bityutskiy <dedekind1@gmail.com>,
"linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 2/6] UBI: Add accessor functions for WL data structures
Date: Sun, 30 Nov 2014 15:58:00 +0100 [thread overview]
Message-ID: <547B3078.4020905@nod.at> (raw)
In-Reply-To: <CAOMZO5BVewD==3dDLBD_AwrffMBih5EG3YYfYBAfH=+wDpV=3Q@mail.gmail.com>
Am 30.11.2014 um 15:55 schrieb Fabio Estevam:
> On Sun, Nov 30, 2014 at 10:19 AM, Richard Weinberger <richard@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?
Correct. I need a generator script for such stuff. :)
Thanks,
//richard
next prev parent reply other threads:[~2014-11-30 14:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-30 12:19 Fastmap update v2 (pile 6) Richard Weinberger
2014-11-30 12:19 ` [PATCH 1/6] UBI: Move fastmap specific functions out of wl.c Richard Weinberger
2014-11-30 12:19 ` [PATCH 2/6] UBI: Add accessor functions for WL data structures Richard Weinberger
2014-11-30 14:55 ` Fabio Estevam
2014-11-30 14:58 ` Richard Weinberger [this message]
2014-11-30 12:19 ` [PATCH 3/6] UBI: Fastmap: Wire up WL accessor functions Richard Weinberger
2014-11-30 12:19 ` [PATCH 4/6] UBI: Fastmap: Introduce ubi_fastmap_init() Richard Weinberger
2014-11-30 12:19 ` [PATCH 5/6] UBI: Fastmap: Introduce may_reserve_for_fm() Richard Weinberger
2014-11-30 12:19 ` [PATCH 6/6] UBI: Fastmap: Remove else after return Richard Weinberger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=547B3078.4020905@nod.at \
--to=richard@nod.at \
--cc=dedekind1@gmail.com \
--cc=festevam@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox