From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fengguang Wu Subject: Re: [patch 01/19] Define functions for page cache handling Date: Thu, 29 Nov 2007 16:44:18 +0800 Message-ID: <396325866.00706@ustc.edu.cn> References: <20071129011052.866354847@sgi.com> <20071129011144.503535436@sgi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: akpm@linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, Christoph Hellwig , Mel Gorman , William Lee Irwin III , David Chinner , Jens Axboe , Badari Pulavarty , Maxim Levitsky , Fengguang Wu , swin wang , totty.lu@gmail.com, hugh@veritas.com, joern@lazybastard.org To: Christoph Lameter Return-path: Received: from smtp.ustc.edu.cn ([202.38.64.16]:52488 "HELO ustc.edu.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with SMTP id S1755343AbXK2IoV (ORCPT ); Thu, 29 Nov 2007 03:44:21 -0500 Content-Disposition: inline In-Reply-To: <20071129011144.503535436@sgi.com> Message-Id: Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Wed, Nov 28, 2007 at 05:10:53PM -0800, Christoph Lameter wrote: > +static inline loff_t page_cache_mask(struct address_space *a) > +{ > + return (loff_t)PAGE_MASK; > +} A tiny question: Why choose loff_t instead of 'unsigned long'? It's not obvious because page_cache_mask() is not referenced in this patchset at all ;-)