Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 9 Sep 2002 18:31:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 9 Sep 2002 18:28:44 -0400 Received: from packet.digeo.com ([12.110.80.53]:44501 "EHLO packet.digeo.com") by vger.kernel.org with ESMTP id ; Mon, 9 Sep 2002 18:28:03 -0400 Message-ID: <3D7D2175.53BFE81D@digeo.com> Date: Mon, 09 Sep 2002 15:32:21 -0700 From: Andrew Morton X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.5.32 i686) X-Accept-Language: en MIME-Version: 1.0 To: Daniel Phillips CC: Rik van Riel , trond.myklebust@fys.uio.no, Chuck Lever , Linux Kernel Mailing List Subject: Re: invalidate_inode_pages in 2.5.32/3 References: <3D7D1AB4.B465ABE8@digeo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 09 Sep 2002 22:32:36.0955 (UTC) FILETIME=[CC6452B0:01C25850] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 828 Lines: 23 Daniel Phillips wrote: > > > > void invalidate_inode_pages(struct inode *inode) > > > { > > > truncate_inode_pages(mapping, 0); > > > } > > > > > > Is it any harder than that? > > > > Pretty much - need to leave i_size where it was. > > This doesn't touch i_size. Sorry - I was thinking vmtruncate(). truncate_inode_pages() would result in all the mmapped pages becoming out-of-date anonymous memory. NFS needs to take down the pagetables so that processes which are mmapping the file which changed on the server will take a major fault and read a fresh copy. I believe. - 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/