Re: [PATCH] Remove completion from struct klist_node

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Matthew Wilcox
Date: Friday, October 3, 2008 - 7:06 am

On Thu, Oct 02, 2008 at 03:17:45PM -0700, Greg KH wrote:

I'm somewhat averse to using data structures when they do more than I
need them to.  list_heads are great for when you need to remove an entry
from the middle of a list, but there are no advantages to using a
doubly-linked list here -- we always walk it from the start to the end,
and a singly linked list is fine for this purpose.  Maybe we need a set
of 'slist' macros so we can use singly-linked-lists without thinking
terribly hard, but I'd hate to see this patch get stuck behind
infrastructure improvements.

-- 
Matthew Wilcox				Intel Open Source Technology Centre
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours.  We can't possibly take such
a retrograde step."
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Remove completion from struct klist_node, Matthew Wilcox, (Thu Oct 2, 2:43 pm)
Re: [PATCH] Remove completion from struct klist_node, Matthew Wilcox, (Fri Oct 3, 7:06 am)
Re: [PATCH] Remove completion from struct klist_node, Matthew Wilcox, (Thu Oct 16, 1:57 pm)