From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754780AbZDVRrV (ORCPT ); Wed, 22 Apr 2009 13:47:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751914AbZDVRrM (ORCPT ); Wed, 22 Apr 2009 13:47:12 -0400 Received: from e36.co.us.ibm.com ([32.97.110.154]:49604 "EHLO e36.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751771AbZDVRrL (ORCPT ); Wed, 22 Apr 2009 13:47:11 -0400 Subject: Re: [PATCH 18/22] Use allocation flags as an index to the zone watermark From: Dave Hansen To: Mel Gorman Cc: Linux Memory Management List , KOSAKI Motohiro , Christoph Lameter , Nick Piggin , Linux Kernel Mailing List , Lin Ming , Zhang Yanmin , Peter Zijlstra , Pekka Enberg , Andrew Morton In-Reply-To: <20090422171451.GG15367@csn.ul.ie> References: <1240408407-21848-1-git-send-email-mel@csn.ul.ie> <1240408407-21848-19-git-send-email-mel@csn.ul.ie> <1240420313.10627.85.camel@nimitz> <20090422171451.GG15367@csn.ul.ie> Content-Type: text/plain Date: Wed, 22 Apr 2009 10:47:03 -0700 Message-Id: <1240422423.10627.96.camel@nimitz> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.