Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755894Ab1FZWty (ORCPT ); Sun, 26 Jun 2011 18:49:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:13686 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755151Ab1FZWsc (ORCPT ); Sun, 26 Jun 2011 18:48:32 -0400 Message-ID: <4E07B709.9010306@redhat.com> Date: Sun, 26 Jun 2011 18:47:37 -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 2/2] fadvise: implement POSIX_FADV_NOREUSE References: <1308923350-7932-1-git-send-email-andrea@betterlinux.com> <1308923350-7932-3-git-send-email-andrea@betterlinux.com> In-Reply-To: <1308923350-7932-3-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: 1126 Lines: 36 On 06/24/2011 09:49 AM, Andrea Righi wrote: > @@ -114,7 +114,8 @@ SYSCALL_DEFINE(fadvise64_64)(int fd, loff_t offset, loff_t len, int advice) > ret = 0; > break; > case POSIX_FADV_NOREUSE: > - break; > + /* Reduce cache eligibility */ > + force = false; > case POSIX_FADV_DONTNEED: > if (!bdi_write_congested(mapping->backing_dev_info)) > filemap_flush(mapping); And the same is true here. "force" is just not a very descriptive name. > @@ -124,8 +125,8 @@ SYSCALL_DEFINE(fadvise64_64)(int fd, loff_t offset, loff_t len, int advice) > end_index = (endbyte>> PAGE_CACHE_SHIFT); > > if (end_index>= start_index) > - invalidate_mapping_pages(mapping, start_index, > - end_index); > + __invalidate_mapping_pages(mapping, start_index, > + end_index, force); > break; > default: > ret = -EINVAL; -- 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/