From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762346AbXIKGEu (ORCPT ); Tue, 11 Sep 2007 02:04:50 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1761443AbXIKGEb (ORCPT ); Tue, 11 Sep 2007 02:04:31 -0400 Received: from netops-testserver-4-out.sgi.com ([192.48.171.29]:56451 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1761202AbXIKGEa (ORCPT ); Tue, 11 Sep 2007 02:04:30 -0400 Message-Id: <20070911060426.201526506@sgi.com> References: <20070911060349.993975297@sgi.com> User-Agent: quilt/0.46-1 Date: Mon, 10 Sep 2007 23:03:54 -0700 From: Christoph Lameter To: torvalds@linux-foundation.org Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Christoph Hellwig , Mel Gorman Cc: William Lee Irwin III , David Chinner Cc: Jens Axboe , Badari Pulavarty Cc: Maxim Levitsky , Fengguang Wu Cc: swin wang , totty.lu@gmail.com, hugh@veritas.com Cc: joern@lazybastard.org Subject: [04/41] Use page_cache_xxx in mm/page-writeback.c Content-Disposition: inline; filename=0004-Use-page_cache_xxx-in-mm-page-writeback.c.patch Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Use page_cache_xxx in mm/page-writeback.c Signed-off-by: Christoph Lameter --- mm/page-writeback.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/page-writeback.c b/mm/page-writeback.c index 63512a9..ebe76e3 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c @@ -624,8 +624,8 @@ int write_cache_pages(struct address_space *mapping, index = mapping->writeback_index; /* Start from prev offset */ end = -1; } else { - index = wbc->range_start >> PAGE_CACHE_SHIFT; - end = wbc->range_end >> PAGE_CACHE_SHIFT; + index = page_cache_index(mapping, wbc->range_start); + end = page_cache_index(mapping, wbc->range_end); if (wbc->range_start == 0 && wbc->range_end == LLONG_MAX) range_whole = 1; scanned = 1; @@ -827,7 +827,7 @@ int __set_page_dirty_nobuffers(struct page *page) WARN_ON_ONCE(!PagePrivate(page) && !PageUptodate(page)); if (mapping_cap_account_dirty(mapping)) { __inc_zone_page_state(page, NR_FILE_DIRTY); - task_io_account_write(PAGE_CACHE_SIZE); + task_io_account_write(page_cache_size(mapping)); } radix_tree_tag_set(&mapping->page_tree, page_index(page), PAGECACHE_TAG_DIRTY); -- 1.5.2.5 --