Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753661AbZDWA12 (ORCPT ); Wed, 22 Apr 2009 20:27:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751732AbZDWA1T (ORCPT ); Wed, 22 Apr 2009 20:27:19 -0400 Received: from fgwmail6.fujitsu.co.jp ([192.51.44.36]:42466 "EHLO fgwmail6.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751174AbZDWA1S (ORCPT ); Wed, 22 Apr 2009 20:27:18 -0400 From: KOSAKI Motohiro To: Dave Hansen Subject: Re: [PATCH 18/22] Use allocation flags as an index to the zone watermark Cc: kosaki.motohiro@jp.fujitsu.com, Mel Gorman , Linux Memory Management List , Christoph Lameter , Nick Piggin , Linux Kernel Mailing List , Lin Ming , Zhang Yanmin , Peter Zijlstra , Pekka Enberg , Andrew Morton In-Reply-To: <1240422423.10627.96.camel@nimitz> References: <20090422171451.GG15367@csn.ul.ie> <1240422423.10627.96.camel@nimitz> Message-Id: <20090423092350.F6E6.A69D9226@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.50 [ja] Date: Thu, 23 Apr 2009 09:27:15 +0900 (JST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1073 Lines: 29 > On Wed, 2009-04-22 at 18:14 +0100, Mel Gorman wrote: > > Preference of taste really. When I started a conversion to accessors, it > > changed something recognised to something new that looked uglier to me. > > Only one place cares about the union enough to access is via an array so > > why spread it everywhere. > > Personally, I'd say for consistency. Someone looking at both forms > wouldn't necessarily know that they refer to the same variables unless > they know about the union. for just clalification... AFAIK, C language specification don't gurantee point same value. compiler can insert pad between struct-member and member, but not insert into array. However, all gcc version don't do that. I think. but perhaps I missed some minor gcc release.. So, I also like Dave's idea. but it only personal feeling. -- 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/