From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BBE64C77B75 for ; Tue, 18 Apr 2023 05:04:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230211AbjDRFEc (ORCPT ); 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 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.