[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20091111082159.2a5b915b@jbarnes-x200>
Date: Wed, 11 Nov 2009 08:21:59 +0000
From: Jesse Barnes <jbarnes@...tuousgeek.org>
To: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Yinghai Lu <yhlu.kernel@...il.com>,
Ivan Kokshaysky <ink@...assic.park.msu.ru>,
Ingo Molnar <mingo@...e.hu>, Matthew Wilcox <matthew@....cx>,
"linux-pci@...r.kernel.org" <linux-pci@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: pci_find_parent_resource patch
On Tue, 10 Nov 2009 07:57:47 -0800 (PST)
Linus Torvalds <torvalds@...ux-foundation.org> wrote:
> /* We can't insert a non-prefetch resource inside a
> prefetchable parent .. */ if (r->flags & IORESOURCE_PREFETCH)
> continue;
> /* .. but we can put a prefetchable resource inside a
> non-prefetchable one */ if (!best)
> best = r;
>
> instead. With the comments, it's now six lines instead of two, but
> it's conceptually simpler, and I _could_ have written it as two lines:
>
> if ((res->flags & IORESOURCE_PREFETCH) && !best)
> best = r; /* Approximating prefetchable by
> non-prefetchable */
>
> but I thought that was too damn subtle.
>
> Feel free to use this long explanation as a commit message if you
> want,
Ok, I applied it to my linux-next tree.
Thanks,
Jesse
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists