Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp512184rwe; Fri, 14 Apr 2023 06:18:39 -0700 (PDT) X-Google-Smtp-Source: AKy350aiv4UcKh6mJz4wQ3Ft7QCYUpHx5ZD5fyACxrDTpV3kJl8o7wrvE4IaTseq7VDKvuuVVMCX X-Received: by 2002:a5d:9c14:0:b0:74c:b452:da9d with SMTP id 20-20020a5d9c14000000b0074cb452da9dmr3675107ioe.0.1681478319635; Fri, 14 Apr 2023 06:18:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681478319; cv=none; d=google.com; s=arc-20160816; b=DlKrSpz7iVhE8/TdlSjjUyQptguF4YVEOkQQ4JA6dlXuXOKXS3ohDxoEDbjFYuDHoE RIHfiy+nSZ0UXYabXEa+lRoi4E9KBJ2YjkeKbJA2AGKlqjnu6Ywxk8r/cDncBsbfmRoH mmYOG2y0NgG8KeEkqdf2vP5/yxe/zYyPZ+tuTzaAO8hwYhCZUKcnOOyBTShukvGMGhOF AlTnZc97X8d1SzLF3CF+gCS4S+biC6s0Mraez6ZhD/RFTgYU4fccv+7TCRl49vpFiojj IDvmhxqkrucjaVJjTIcXfas8rhrkEex9KoZgUHN9D3KfdzMc3zBE7D4/HZtPU9uiiOW0 CVyw== 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=LL1q5+2/qoyTMAi0m5Inbcnk8ARxhmQA/eDmbuGrVFI=; b=LIAtdeN9GB3HtF4p1S2IQUwvTnBFEVdygw3xGLCF+cLRmwsyX9dzjwmQGp/A7N4qy7 ItJ2d8xfriL40Is3uO4yKQfxcbu59qmOiM4t3rNN+BvhY3NQRa3/C6GILcosmM67CijD hI6vx9nZxe+O121KgrLAdTruQmNcNqdZv/Uoe7dFFbq3G8SKnAjmezGCR5N9all5Y4r6 ksAZrm85aqmv+4aD40gdJ2bkBdrneYLpdZEQGb2gkYKx5BennAAxB97KBUbAw+7phGJ+ i1yAPfLp0YB1AyqHBGhSjSJ+BDsDOB6lwzfDqZWbaA0+pLH9+3V2uxPwMYAdWZlL3+Nd STCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=Kh6UZuqb; 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 c24-20020a5d8b58000000b007532fe3833dsi3901739iot.48.2023.04.14.06.18.16; Fri, 14 Apr 2023 06:18:39 -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=Kh6UZuqb; 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 S229615AbjDNNME (ORCPT + 99 others); Fri, 14 Apr 2023 09:12:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229540AbjDNNME (ORCPT ); Fri, 14 Apr 2023 09:12:04 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 793673A9C; Fri, 14 Apr 2023 06:12:03 -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=LL1q5+2/qoyTMAi0m5Inbcnk8ARxhmQA/eDmbuGrVFI=; b=Kh6UZuqbs5BYZHX/qXCrMWvBed sJUUix+JdjmyxKIEMeJJtEqqZgKn8yyQULC6IyHM46/A2tyZ6xZJmpmn0RK+tr5XQ+tBkknUMz6Rl p2VklbLcmZqQh5lqGXnQER9H/UtNUWCyo5itilat+q+I40osSQMULhltAr7xwqSL9sssNjHljay86 HNZArBFFZTEuoIJ4Oqj1FBvOOsOJ3wphSEgn4DWTi6FibfUTG1r3bN1o58zgJ7EseaJNEAtERayoj Dhbi/isUG25Pm1jO3oSXXnCHeGtwr741SJfWpfZSQGyP5toHjMjdx/MdRmovRpqNYdkyefMjJfFjk k5s7BE3w==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1pnJDc-009eNP-38; Fri, 14 Apr 2023 13:12:00 +0000 Date: Fri, 14 Apr 2023 06:12:00 -0700 From: Christoph Hellwig To: Jan Kara Cc: Christoph Hellwig , "Ritesh Harjani (IBM)" , linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, "Darrick J . Wong" , Ojaswin Mujoo , Disha Goel Subject: Re: [RFCv3 02/10] libfs: Add __generic_file_fsync_nolock implementation Message-ID: References: <20230414125148.du7r6ljdyzckoysh@quack3> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230414125148.du7r6ljdyzckoysh@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 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 Fri, Apr 14, 2023 at 02:51:48PM +0200, Jan Kara wrote: > On Thu 13-04-23 22:59:24, Christoph Hellwig wrote: > > Still no fan of the naming and placement here. This is specific > > to the fs/buffer.c infrastructure. > > I'm fine with moving generic_file_fsync() & friends to fs/buffer.c and > creating the new function there if it makes you happier. But I think > function names should be consistent (hence the new function would be named > __generic_file_fsync_nolock()). I agree the name is not ideal and would use > cleanup (along with transitioning everybody to not take i_rwsem) but I > don't want to complicate this series by touching 13+ callsites of > generic_file_fsync() and __generic_file_fsync(). That's for a separate > series. I would not change the existing function. Just do the right thing for the new helper and slowly migrate over without complicating this series.