From: Steve French Subject: Re: prepare_write problem for small write when page not uptodate Date: 29 Apr 2004 17:13:25 -0500 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <1083276805.16797.8.camel@stevef95.austin.ibm.com> References: <1083274755.16798.4.camel@stevef95.austin.ibm.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: Received: from e31.co.us.ibm.com ([32.97.110.129]:63718 "EHLO e31.co.us.ibm.com") by vger.kernel.org with ESMTP id S264996AbUD2WO3 (ORCPT ); Thu, 29 Apr 2004 18:14:29 -0400 Received: from westrelay04.boulder.ibm.com (westrelay04.boulder.ibm.com [9.17.193.32]) by e31.co.us.ibm.com (8.12.10/8.12.2) with ESMTP id i3TMESpj441758 for ; Thu, 29 Apr 2004 18:14:28 -0400 Received: from stevef95-009041091094.austin.ibm.com (d03av02.boulder.ibm.com [9.17.193.82]) by westrelay04.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id i3TMER8E207076 for ; Thu, 29 Apr 2004 16:14:28 -0600 To: linux-fsdevel@vger.kernel.org In-Reply-To: <1083274755.16798.4.camel@stevef95.austin.ibm.com> List-Id: linux-fsdevel.vger.kernel.org On Thu, 2004-04-29 at 16:39, Steve French wrote: > > Seems like invalidate_remote_inode (eventually calling > > invalidate_complete_page) does not always actually free the page > > Switching from invalidate_remote_inode (invalidate_mapping_pages) to > invalidate_inode_pages2 in cifs worked and fixed the problem (partial > page write corrupts a page that is marked not uptodate due to > invalidate_remote_inode). Still not clear to me when you would use > truncate_inode_pages and when you would use invalidate_inode_pages2. False alarm - none of the three worked. Looks like I am going to have to fall back to the hard way - in prepare_write if page is not up to date - read it from the server since I can't seem to force the mm code to do a readpage first by tossing the page via any of the three mechanisms.