Re: 2.6.6-rc1-mm1

From: raven
Date: Wed Apr 21 2004 - 10:51:01 EST


On Wed, 21 Apr 2004, Christoph Hellwig wrote:

> > +
> > + spin_lock(&vfsmount_lock);
> > + actual_refs = atomic_read(&mnt->mnt_count);
> > + minimum_refs = 2;
> > +repeat:
> > + next = this_parent->mnt_mounts.next;
> > +resume:
> > + while (next != &this_parent->mnt_mounts) {
> > + struct vfsmount *p = list_entry(next, struct vfsmount, mnt_child);
> > +
> > + next = next->next;
>
> Any chance to use list_for_each_entry here?

It looks to me like this macro can't be used for a tree traversal.
Please enlighten me if I'm wrong.

-
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/