From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Lameter Subject: [patch 00/18] Page cache: Replace PAGE_CACHE_xx with inline functions V4 Date: Fri, 15 Feb 2008 16:47:18 -0800 Message-ID: <20080216004718.047808297@sgi.com> Cc: linux-fsdevel@vger.kernel.org, linux-mm@kvack.org To: akpm@linux-foundation.org Return-path: Received: from netops-testserver-3-out.sgi.com ([192.48.171.28]:46061 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752841AbYBPAsG (ORCPT ); Fri, 15 Feb 2008 19:48:06 -0500 Cc: David Chinner Sender: linux-fsdevel-owner@vger.kernel.org List-ID: This patchset cleans up page cache handling by replacing open coded shifts and adds with inline function calls. The ultimate goal is to replace all uses of PAGE_CACHE_xxx in the kernel through the use of these functions. All the functions take a mapping parameter. The mapping parameter is required if we want to support large block sizes in filesystems and block devices. Patchset against upstream as of today (2.6.25-rc2) Patchset can be pulled from git://git.kernel.org/pub/scm/linux/kernel/git/christoph/vm.git pagecache-inline V2->V4: - Rediff to upstream. Surprisingly no rejects at all so it seems that all of the pagecache patches that were in mm were merged. Just had to refresh the patches. V2->V3: - Audit to check that uses of page->mapping are valid. Improve a couple of places. Make it clearer how the mappings are determined and handled (see the comments of each patch for detailed descriptions). - Use a consistent method to determine the mapping if a function already does determine the inode via page->mapping->host. V1->V2: - Review by Dave Chinner. Multiple improvements and fixes. - Review by Fengguand Wu with more improvements. --