[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <E1PZXeb-0004AV-2b@tytso-glaptop>
Date: Sun, 02 Jan 2011 18:48:01 -0500
From: "Theodore Ts'o" <tytso@....edu>
To: Christoph Lameter <cl@...ux-foundation.org>,
Pekka Enberg <penberg@...helsinki.fi>,
Matt Mackall <mpm@...enic.com>, linux-mm@...ck.org
cc: linux-kernel@...r.kernel.org
Subject: Should we be using unlikely() around tests of GFP_ZERO?
Given the patches being busily submitted by trivial patch submitters to
make use kmem_cache_zalloc(), et. al, I believe we should remove the
unlikely() tests around the (gfp_flags & __GFP_ZERO) tests, such as:
- if (unlikely((flags & __GFP_ZERO) && objp))
+ if ((flags & __GFP_ZERO) && objp)
memset(objp, 0, obj_size(cachep));
Agreed? If so, I'll send a patch...
- Ted
--
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