From mboxrd@z Thu Jan 1 00:00:00 1970 From: Theodore Tso Subject: Re: [PATCH v3] introduce sys_syncfs to sync a single file system Date: Sun, 13 Mar 2011 21:37:44 -0400 Message-ID: References: <201103111255.44979.arnd@arndb.de> <4D7AC0FE.8070806@gmail.com> <1d4d1b7ae64da97f44cad0e2bda4f832.squirrel@webmail.greenhost.nl> <4D7ADFDD.9080108@gmail.com> <4D7BBC03.3020404@garzik.org> <89481603ed9cfc86efaa039c2dfeb955.squirrel@webmail.greenhost.nl> Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <89481603ed9cfc86efaa039c2dfeb955.squirrel@webmail.greenhost.nl> Sender: linux-kernel-owner@vger.kernel.org To: Indan Zupancic Cc: Jeff Garzik , Ric Wheeler , Arnd Bergmann , Sage Weil , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, "Aneesh Kumar K. V" , Jonathan Nieder , akpm@linux-foundation.org, linux-api@vger.kernel.org, mtk.manpages@gmail.com, viro@zeniv.linux.org.uk, hch@lst.de, l@jasper.es List-Id: linux-api@vger.kernel.org On Mar 13, 2011, at 9:31 PM, Indan Zupancic wrote: > The new syscall works on only one fd too. The behaviour of the proposed > syncfs and an extended sync_file_range is exactly the same. No, it's quite different. One syncs the entire file system; sync_file_range requests that the pages associated with a file be pushed to disk --- it says nothing about the metadata associated with the file. I'm in favor of the new sys_syncfs system call. -- Ted