Re: [PATCH 000 of 35] Refactor block layer to improve support for stacked devices.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: NeilBrown <neilb@...>
Cc: <linux-kernel@...>
Date: Tuesday, July 31, 2007 - 11:28 am

NeilBrown wrote:

Well, I hesitate to state the obvious, but how about:

#define bio_for_each_segment_offset(bv, bio, _i, offs, _size) \
    for (bio_iterator_init(&_i, ...); bio_iterator_cont(&_i, ...); 
bio_iterator_advance(&_i, ...)) \
         if (bio_iterator_want_segment(&_i, ...))

While this doesn't remove the complexity, at least it's readable.

-- 
error compiling committee.c: too many arguments to function

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 000 of 35] Refactor block layer to improve suppor..., Avi Kivity, (Tue Jul 31, 11:28 am)