From: Steve French Subject: writethrough of mmapped pages Date: 30 Jan 2004 17:30:04 -0600 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <1075505404.2322.9.camel@stevef95.austin.ibm.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: Received: from e2.ny.us.ibm.com ([32.97.182.102]:47758 "EHLO e2.ny.us.ibm.com") by vger.kernel.org with ESMTP id S264376AbUA3XfE (ORCPT ); Fri, 30 Jan 2004 18:35:04 -0500 Received: from northrelay04.pok.ibm.com (northrelay04.pok.ibm.com [9.56.224.206]) by e2.ny.us.ibm.com (8.12.10/8.12.2) with ESMTP id i0UNZ34r428770 for ; Fri, 30 Jan 2004 18:35:03 -0500 Received: from stevef95.austin.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by northrelay04.pok.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id i0UNZ34t124672 for ; Fri, 30 Jan 2004 18:35:03 -0500 To: linux-fsdevel@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Is there an easy way to locally force the page cache to do in effect writethrough of mmapped pages (when I lose my write caching token in cifs vfs e.g.)? Standard writes can be hooked easily enough by wrapping the inode operation for write and only calling generic_write if they are (still) cacheable locally which is what I do in current code, but mmapped writes still go through the page cache presumably and thus would have to be synced if a non-mmmapped read followed an mmapped write of an overlapping range.