Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C0860C4743C for ; Mon, 21 Jun 2021 14:22:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A55D36124B for ; Mon, 21 Jun 2021 14:22:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229940AbhFUOYv (ORCPT ); Mon, 21 Jun 2021 10:24:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229807AbhFUOYv (ORCPT ); Mon, 21 Jun 2021 10:24:51 -0400 Received: from zeniv-ca.linux.org.uk (zeniv-ca.linux.org.uk [IPv6:2607:5300:60:148a::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99253C061756 for ; Mon, 21 Jun 2021 07:22:37 -0700 (PDT) Received: from viro by zeniv-ca.linux.org.uk with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1lvKop-00Ar8g-TS; Mon, 21 Jun 2021 14:22:31 +0000 Date: Mon, 21 Jun 2021 14:22:31 +0000 From: Al Viro To: Christoph Hellwig Cc: Matthew Wilcox , linux-fsdevel@vger.kernel.org, Jens Axboe Subject: Re: [RFC] what to do with IOCB_DSYNC? Message-ID: References: <20210621135958.GA1013@lst.de> <20210621140956.GA1887@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210621140956.GA1887@lst.de> Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Mon, Jun 21, 2021 at 04:09:56PM +0200, Christoph Hellwig wrote: > On Mon, Jun 21, 2021 at 03:03:07PM +0100, Matthew Wilcox wrote: > > i suggested that to viro last night, and he pointed out that ioctl(S_SYNC) > > Where would that S_SYNC ioctl be implemented? S_SYNC is not an ioctl, it's an inode flag settable by such. FS_IOC_SETFLAGS with FS_SYNC_FL in flags, or FS_IOC_FSSETXATTR with FS_XFLAG_SYNC.