Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp4906290rwe; Mon, 17 Apr 2023 22:05:53 -0700 (PDT) X-Google-Smtp-Source: AKy350b9MWgsw5ShWc88PCNeDcwtTcHgnJrjoA+PCZGzNL57/DGMw/YjECYndaVCtguJkCo/jDd2 X-Received: by 2002:a17:90b:792:b0:247:6be7:8cc0 with SMTP id l18-20020a17090b079200b002476be78cc0mr811714pjz.35.1681794352900; Mon, 17 Apr 2023 22:05:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681794352; cv=none; d=google.com; s=arc-20160816; b=akNsMoZm7bSnmJIRQTrv8gt1tjDxHyOAp/iKJwW673TzD1NxS7fMag07deXf3uqlCJ Py0ZhbmX0jGDBRVAU21eO0Sryqx2y0pdUwj+xEbqwrjEsBFJSFeXBiI9VvWqUYAS5soe yZrFVS90JQp2kcA0emO1t+PxC1kjHrWEuufnSuPPUy8LLpZg7K7jTkoC1/AqCVUwTKSS +8mWOYSiwjwheseyCol0m04fkrC1R/geGXm9VsGMr/yjrDkHi/WxN/qexMpLHZWU7jM6 JnVTQ+vgle8vONisNnsihYE2c0zNgJK9JNYkfkTSoeRBPxcBzLFXK5itX96+PxheYm59 8L4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PoZWwBJh/5v/77nDYw227V6Aepk7GaCrd18vWQ3CjIg=; b=M0aFd44L3DYt/Ltqmkl1LeKcH4/4d1URo5IM95OGBRKXqZFBl7cHpfcupuVv0gZqcg /szrglwzkRJVUoLVx0s+OSlIrA10rt381fFI4tJHWw8HkEc0J28En84aiq4WIjj22uj5 ORFiPt3kPOhjvPUF5FRo/dbDjvkHBrtuunJeEvzQ0NQKN5Y4+MBED7zvdL/X0YKFP8D9 ZocGVoayIZa4GTAzYUEaTAaeYIghof9ZNj+FRiMJ+K6babY9GAPDtaQ+Y7stj4ssQLJP sdKntE0KcUl6lmKKvLNzi3gw3wEG7m5sqFNx+nACA2U7s0pAj/Xgx49ul7qZwpd2GQwc 7jpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=mVHdhVSK; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k13-20020a17090aaa0d00b0024687060c67si15816313pjq.74.2023.04.17.22.05.33; Mon, 17 Apr 2023 22:05:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=mVHdhVSK; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230143AbjDRFEc (ORCPT + 99 others); Tue, 18 Apr 2023 01:04:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229517AbjDRFEb (ORCPT ); Tue, 18 Apr 2023 01:04:31 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E7E43ABB; Mon, 17 Apr 2023 22:04:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=PoZWwBJh/5v/77nDYw227V6Aepk7GaCrd18vWQ3CjIg=; b=mVHdhVSKgrVP1Evl6IttJlJXfl QHeDz68AivEcadg64Uj+ZnmA0OlfdUzxBcMlvMfvXdwOLiRJyf0xwnlPD4J4wRcn97BeiqzYpfhnT QVe43UEW//k94PFt40OBb4+mpVEAGl98xqGYbGkd0fvJDsEprXmi3p0o9ERz4/V65aIuG7znHW5Lc Uy2mXkNPqkw2EWSrMHZy9V5mvbVfysLu5wBxKkOGECqpzgqBsxgq/AALQxnzv5DwOvlNIy8UUeFYX nUecoM/c+0ZdGgj+hCBG087IzTmIIj5oCi5tQSK6II/8BLtRdyO9fYY/kGQAI3H6CjOpk9K0F2T19 ffGIlSOQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1podW1-000rNN-0H; Tue, 18 Apr 2023 05:04:29 +0000 Date: Mon, 17 Apr 2023 22:04:29 -0700 From: Christoph Hellwig To: Jan Kara Cc: Ritesh Harjani , linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, Christoph Hellwig , "Darrick J . Wong" , Ojaswin Mujoo , Disha Goel , Christoph Hellwig Subject: Re: [PATCHv5 2/9] fs/buffer.c: Add generic_buffer_fsync implementation Message-ID: References: <20230417110149.mhrksh4owqkfw5pa@quack3> <87o7nmivqm.fsf@doe.com> <20230417164550.yw6p4ddruutxqqax@quack3> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230417164550.yw6p4ddruutxqqax@quack3> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Mon, Apr 17, 2023 at 06:45:50PM +0200, Jan Kara wrote: > Hum, I think the difference sync vs fsync is too subtle and non-obvious. Agreed. > I can see sensible pairs like: > > __generic_buffers_fsync() - "__" indicates you should know what you > are doing when calling this > generic_buffers_fsync() > > or > > generic_buffers_fsync() > generic_file_fsync() - difficult at this point as there's name > clash > > or > > generic_buffers_fsync_noflush() > generic_buffers_fsync() - obvious what the default "safe" choice > is. > > or something like that. I'd prefer the last option as the most explicit one.