Messages in this thread | | | Date | Wed, 21 Apr 2004 23:52:18 +0800 (WST) | From | raven@themaw ... | Subject | Re: 2.6.6-rc1-mm1 |
| |
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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |