From: Steve French Subject: Re: prepare_write problem for small write when page not uptodate Date: 29 Apr 2004 16:39:15 -0500 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <1083274755.16798.4.camel@stevef95.austin.ibm.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: Received: from e5.ny.us.ibm.com ([32.97.182.105]:45979 "EHLO e5.ny.us.ibm.com") by vger.kernel.org with ESMTP id S264874AbUD2VkT (ORCPT ); Thu, 29 Apr 2004 17:40:19 -0400 Received: from northrelay02.pok.ibm.com (northrelay02.pok.ibm.com [9.56.224.150]) by e5.ny.us.ibm.com (8.12.10/8.12.2) with ESMTP id i3TLeI8H237512 for ; Thu, 29 Apr 2004 17:40:18 -0400 Received: from stevef95-009041091094.austin.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by northrelay02.pok.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id i3TLeXs9089428 for ; Thu, 29 Apr 2004 17:40:33 -0400 To: linux-fsdevel@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org > 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.