Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754624Ab1FZWtP (ORCPT ); Sun, 26 Jun 2011 18:49:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:8635 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755610Ab1FZWrv (ORCPT ); Sun, 26 Jun 2011 18:47:51 -0400 Message-ID: <4E07B6D6.8070203@redhat.com> Date: Sun, 26 Jun 2011 18:46:46 -0400 From: Rik van Riel User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc15 Lightning/1.0b3pre Thunderbird/3.1.10 MIME-Version: 1.0 To: Andrea Righi CC: Andrew Morton , Minchan Kim , Peter Zijlstra , Johannes Weiner , KAMEZAWA Hiroyuki , Andrea Arcangeli , Hugh Dickins , Jerry James , Marcus Sorensen , Matt Heaton , KOSAKI Motohiro , Theodore Tso , Shaohua Li , =?UTF-8?B?UMOhZHJhaWcgQnJhZHk=?= , linux-mm , LKML Subject: Re: [PATCH v3 1/2] mm: introduce __invalidate_mapping_pages() References: <1308923350-7932-1-git-send-email-andrea@betterlinux.com> <1308923350-7932-2-git-send-email-andrea@betterlinux.com> In-Reply-To: <1308923350-7932-2-git-send-email-andrea@betterlinux.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1227 Lines: 32 On 06/24/2011 09:49 AM, Andrea Righi wrote: > diff --git a/mm/truncate.c b/mm/truncate.c > index 3a29a61..90f3a97 100644 > --- a/mm/truncate.c > +++ b/mm/truncate.c > @@ -312,20 +312,27 @@ void truncate_inode_pages(struct address_space *mapping, loff_t lstart) > EXPORT_SYMBOL(truncate_inode_pages); > > /** > - * invalidate_mapping_pages - Invalidate all the unlocked pages of one inode > + * __invalidate_mapping_pages - Invalidate all the unlocked pages of one inode > * @mapping: the address_space which holds the pages to invalidate > * @start: the offset 'from' which to invalidate > * @end: the offset 'to' which to invalidate (inclusive) > + * @force: always drop pages when true (otherwise, reduce cache eligibility) I don't like the parameter name "force". The parameter determines whether or not pages actually get invalidated, so I'm guessing the parameter name should reflect the function... Maybe something like "invalidate"? -- All rights reversed -- 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/