Re: Should we be using unlikely() around tests of GFP_ZERO?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Pekka Enberg
Date: Monday, January 3, 2011 - 12:40 am

Hi,

On Mon, Jan 3, 2011 at 8:48 AM, Theodore Ts'o <tytso@mit.edu> wrote:

On Mon, Jan 3, 2011 at 5:46 AM, Minchan Kim <minchan.kim@gmail.com> wrote:

I guess the rationale here is that if you're going to take the hit of
memset() you can take the hit of unlikely() as well. We're optimizing
for hot call-sites that allocate a small amount of memory and
initialize everything themselves. That said, I don't think the
unlikely() annotation matters much either way and am for removing it
unless people object to that.

On Mon, Jan 3, 2011 at 5:46 AM, Minchan Kim <minchan.kim@gmail.com> wrote:

That would be interesting, sure.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Should we be using unlikely() around tests of GFP_ZERO?, Theodore Ts'o, (Sun Jan 2, 4:48 pm)
Re: Should we be using unlikely() around tests of GFP_ZERO?, Pekka Enberg, (Mon Jan 3, 12:40 am)