Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756716Ab1CNBiC (ORCPT ); Sun, 13 Mar 2011 21:38:02 -0400 Received: from DMZ-MAILSEC-SCANNER-4.MIT.EDU ([18.9.25.15]:55832 "EHLO dmz-mailsec-scanner-4.mit.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752744Ab1CNBh7 (ORCPT ); Sun, 13 Mar 2011 21:37:59 -0400 X-AuditID: 1209190f-b7c1dae000000a2b-2a-4d7d7176678b Subject: Re: [PATCH v3] introduce sys_syncfs to sync a single file system Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii From: Theodore Tso X-Priority: 3 (Normal) In-Reply-To: <89481603ed9cfc86efaa039c2dfeb955.squirrel@webmail.greenhost.nl> Date: Sun, 13 Mar 2011 21:37:44 -0400 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 Content-Transfer-Encoding: 7bit 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> To: "Indan Zupancic" X-Mailer: Apple Mail (2.1082) X-Brightmail-Tracker: AAAAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 701 Lines: 19 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/