From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve French Subject: What trigge fsync of file on last close of the open inode? Date: Tue, 03 Oct 2006 14:53:12 -0500 Message-ID: <4522BFA8.9040000@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Shirish S Pargaonkar Return-path: Received: from e2.ny.us.ibm.com ([32.97.182.142]:6043 "EHLO e2.ny.us.ibm.com") by vger.kernel.org with ESMTP id S1750942AbWJCTwS (ORCPT ); Tue, 3 Oct 2006 15:52:18 -0400 Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [9.56.227.234]) by e2.ny.us.ibm.com (8.13.8/8.12.11) with ESMTP id k93JqHgu029676 for ; Tue, 3 Oct 2006 15:52:17 -0400 Received: from d01av01.pok.ibm.com (d01av01.pok.ibm.com [9.56.224.215]) by d01relay02.pok.ibm.com (8.13.6/8.13.6/NCO v8.1.1) with ESMTP id k93JqHgg265734 for ; Tue, 3 Oct 2006 15:52:17 -0400 Received: from d01av01.pok.ibm.com (loopback [127.0.0.1]) by d01av01.pok.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id k93JqH7U024034 for ; Tue, 3 Oct 2006 15:52:17 -0400 To: linux-fsdevel@vger.kernel.org Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org What triggers flush/fsync of dirty pages on last (file) close of inode? I was hunting through the sys_close code and did not see a call to fsync or filemap_write_and_wait there. Is it something done in libc above the vfs? Someone had reported a problem with a writepages call coming in on with no open files (so presumably the file was closed, with dirty pages not written).