On Tue, Oct 15, 2002 at 10:04:17AM -0600, Andreas Dilger wrote:
> > - mb_cache_lock();
> > + spin_lock(&mb_cache_spinlock);
> > l = mb_cache_lru_list.prev;
> > while (l != &mb_cache_lru_list) {
> > struct mb_cache_entry *ce =
> > list_entry(l, struct mb_cache_entry, e_lru_list);
>
> Couldn't these all be "list_for_each{_safe}"?
They'd have to be list_for_each_safe_prev, which is not currently
in list.h. The EVMS folks have a patch to add it, though..
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Tue Oct 15 2002 - 22:00:55 EST