Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp3626911rwe; Mon, 17 Apr 2023 00:37:31 -0700 (PDT) X-Google-Smtp-Source: AKy350ZkJhd5dCjg/qDxMt7+gUbaGX9M/Xv5jhC6LdoG1E4oHKYY6J5sY7LH4uJcVnTp4BBOT+Uu X-Received: by 2002:a05:6a20:1d57:b0:d9:e5db:5287 with SMTP id cs23-20020a056a201d5700b000d9e5db5287mr12440328pzb.4.1681717051529; Mon, 17 Apr 2023 00:37:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681717051; cv=none; d=google.com; s=arc-20160816; b=RttuxmzG2w8i8EDJ4+t3n+1QI7bQxaga80m1mzhxV2DOrQ/hI6InRUCs5ivtsEPajw 0Sh7L5LOMaWpeBJXUnxtgPPR4UUAfppAvb9xrDLTEJVpT3/HfvRvFfzchdRQ7nIcEOFr pI06EAFJ4/96TLo4U+YJ0EzFjKpB0evjzPoqqXFiSbHPnRXsPo8XUme3cNvfzn4S5hox jBvY8mjvU29DcO46FZOwcfExL2vJd6lO5CuCLNmy7wGjjysmnvh2NHlEYnXtZcN8YnnU u/+z8RHBpQNbNB0fqKfjHPek1BHCCJwSqPlu5FE65sSnp1REKPd03YttKdqKU+5Hca51 nNhw== 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 :dkim-signature; bh=1axJXJTrCrdB9QZslQSPdRgRQtIBzg09tPZ/jwDGYD8=; b=pzWwRW+i5XcsFFoUCONDT6xxE4Unv4bCyq3ZESNjSNZwpmFS1tMEflQT8zzb+KdQPZ n3zA4/pK6pUFAozZi0LqidFcCoh9LcMmarCjLZPCH133ONh0X9yMTow+jtQQmdBecwpR loy5pfivBcp2EcNVGF1SWB+JV/0miRi9eNmfDPXlM2hEON501Da38j2Htz/QQST7TLMS hoSv6K7CsQnuSg0cTULuKgZ7fyIawg7PGQiXHdyM3vjMJCE92dkgGgyYHosFRYzYBYWb n/Pq/I5Rq3g1RPeV4TvY7ubYxD/b5WD/OTXyZmCp6wdF5YbtZs3sK/f7otkT4qaMvqFW OMJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="BQhQP/Ni"; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; 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 s1-20020a63dc01000000b00517a4a75525si10865010pgg.884.2023.04.17.00.37.14; Mon, 17 Apr 2023 00:37:31 -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=@suse.cz header.s=susede2_rsa header.b="BQhQP/Ni"; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; 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 S230042AbjDQHfJ (ORCPT + 99 others); Mon, 17 Apr 2023 03:35:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230468AbjDQHer (ORCPT ); Mon, 17 Apr 2023 03:34:47 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B012359FA; Mon, 17 Apr 2023 00:33:23 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id D30351F381; Mon, 17 Apr 2023 07:32:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1681716775; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=1axJXJTrCrdB9QZslQSPdRgRQtIBzg09tPZ/jwDGYD8=; b=BQhQP/NiwLQ9VGUs/EI3MGuR40+QJo7BhDJ/ViTDuayUDtr1vC51NRBklIh+URgtO5O5CQ rO023UDu/XRwZB1p4OHjqs756loDhkv2cuebSdLoOQX8J7ULkY+YXgSdBP/BQOe1WqNrPP 2DtVFNW+98vffHwjuwo13LWxGWVc2LI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1681716775; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=1axJXJTrCrdB9QZslQSPdRgRQtIBzg09tPZ/jwDGYD8=; b=6LoPigRWInhHVaw1fJVtkTSzfqk9Jg9DmuST6Zmt2yFvGm6nD0DqOdqHLbKj6V6hPfQY0m WxP1xKQ47K3PktAQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id B51A11390E; Mon, 17 Apr 2023 07:32:55 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id CWU0LCf2PGTjIgAAMHmgww (envelope-from ); Mon, 17 Apr 2023 07:32:55 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id 3F241A0744; Mon, 17 Apr 2023 09:32:55 +0200 (CEST) Date: Mon, 17 Apr 2023 09:32:55 +0200 From: Jan Kara To: Ritesh Harjani Cc: Jan Kara , Christoph Hellwig , 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: <20230417073255.kzauk5qwu5bjcsmh@quack3> References: <20230414142053.gvekvcgxmkjfeht7@quack3> <871qkmzgdl.fsf@doe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <871qkmzgdl.fsf@doe.com> 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_PASS,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 14-04-23 19:59:42, Ritesh Harjani wrote: > Jan Kara writes: > > > On Fri 14-04-23 06:12:00, Christoph Hellwig wrote: > >> 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. > > > > OK, I can live with that temporary naming inconsistency I guess. So > > the function will be __buffer_file_fsync()? > > This name was suggested before, so if that's ok I will go with this - > "generic_buffer_fsync()". It's definition will lie in fs/buffer.c and > it's declaration in include/linux/buffer_head.h > > Is that ok? Yes, that is fine by me. And I suppose this variant will also issue the cache flush, won't it? But then we also need __generic_buffer_fsync() without issuing the cache flush for ext4 (we need to sync parent before issuing a cache flush) and FAT. Honza -- Jan Kara SUSE Labs, CR