Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755046Ab0LQROJ (ORCPT ); Fri, 17 Dec 2010 12:14:09 -0500 Received: from mail-pv0-f174.google.com ([74.125.83.174]:59981 "EHLO mail-pv0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754934Ab0LQROG (ORCPT ); Fri, 17 Dec 2010 12:14:06 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=R740X+EfrckhHewfcjKuIQZPvh3h5bOOboKsLaj7EiCEA9oSeEGijlZT7fK8gNaGAO pz39n5DfK3gzOns9nIhHDE4+ted91FQ08584MthvRXaOFFsblnDagl90OayBp5LXAAVf FZhrDQU/r1AvHELTLIZyN2HDvSNmZ0qXtkvUU= From: Minchan Kim To: Andrew Morton Cc: linux-mm , LKML , Minchan Kim , William Irwin Subject: [RFC 3/5] tlbfs: Remove unnecessary page release Date: Sat, 18 Dec 2010 02:13:38 +0900 Message-Id: <08549e97645f7d6c2bcc5c760a24fde56dfed513.1292604745.git.minchan.kim@gmail.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1047 Lines: 30 This patch series changes remove_from_page_cache's page ref counting rule. page cache ref count is decreased in remove_from_page_cache. So we don't need call again in caller context. Cc: William Irwin Signed-off-by: Minchan Kim --- fs/hugetlbfs/inode.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c index 9885082..4f32fb6 100644 --- a/fs/hugetlbfs/inode.c +++ b/fs/hugetlbfs/inode.c @@ -333,7 +333,6 @@ static void truncate_huge_page(struct page *page) cancel_dirty_page(page, /* No IO accounting for huge pages? */0); ClearPageUptodate(page); remove_from_page_cache(page); - put_page(page); } static void truncate_hugepages(struct inode *inode, loff_t lstart) -- 1.7.0.4 -- 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/