Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp475926rwe; Fri, 14 Apr 2023 05:54:37 -0700 (PDT) X-Google-Smtp-Source: AKy350boftJl++uXgY9vQ/SdklSmGNVcjU4u4lDlDwEsEr/RGAGf7NvoIxGDoZLxhN9+ZipWXUXY X-Received: by 2002:a05:6a21:339a:b0:ee:524e:8426 with SMTP id yy26-20020a056a21339a00b000ee524e8426mr1519656pzb.31.1681476877512; Fri, 14 Apr 2023 05:54:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681476877; cv=none; d=google.com; s=arc-20160816; b=kD6JLzmGq0ThKJCw+CC4kAxsu+8gkWycpRpoY/VUoZrIbHBGHJQ0UuBQDa31gZFkTN lYvJ+BuZtKEj5qIW6QiKmmYhYkTO+ksEw/aly57EJJ4EkxA5OS7uAmRpME7IAI8lP/Cs sPr0AUNJwWtEmCeYamBNreyibmQLGt0sMV+UcXoJnj7KglwokGy/hBARuSEZtAZ2thCl MEFwL6nKiIW30JeQumGtr+6/mz0r0nAq8Lq2WSDRio6v5E3rPTYFx3S26CO6XaeLjR3V CNrWgv/iI3XFWFUf6WBy5AiHayff1RQpj/C06d8T8VczeX+jej3Q6tJfJ3LgUPkBQdSo eMcQ== 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=iWBlwHvWOD4JRJQREhWhtFsot85ORsl/tkKnRk+m6bM=; b=z2LZFoaPNq1X6b2qowjgtuDfN9pXZQwxGGT/8LtugSYuminn0pghDBu0ZCv63TIlDV 7MvJIwixa8Ki4JwxGYrRqzfii4p8vYIftbELI9QGEASPCnfWGZtwnmdfuusJ1vxKpWOJ GT5NQCWiICZ24vb5KESOXTujcACGO3nxZZN5sVbWFvnuEDSzlUNwmlR5p57hMIa+gqQ+ HyUZ2eCcO7JpJWH967gMPpOy36/Y7c8T4oIwPk+be7Hqgb68tWMi9DtGrh8zk2nP3QxS mLsA24rFZt23DZtasaEby2h88npke1cKtaLZFZdj5fvzT4EaCDRTdwnTlxZbLeyTa07h bdxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=BHziAQw+; 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 i12-20020a63cd0c000000b00502e4278d61si4376659pgg.648.2023.04.14.05.54.18; Fri, 14 Apr 2023 05:54:37 -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=BHziAQw+; 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 S229705AbjDNMvw (ORCPT + 99 others); Fri, 14 Apr 2023 08:51:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229544AbjDNMvv (ORCPT ); Fri, 14 Apr 2023 08:51:51 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 656F54C22; Fri, 14 Apr 2023 05:51:50 -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-out1.suse.de (Postfix) with ESMTPS id 12A6921961; Fri, 14 Apr 2023 12:51:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1681476709; 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=iWBlwHvWOD4JRJQREhWhtFsot85ORsl/tkKnRk+m6bM=; b=BHziAQw+YXHl6adelbQWUX1U8WKCC5KnpNdZOnmPJBwxzXb6lyhLbC6n31Ywyh6hI/0wn+ Dd6nMb67APAKYo/Km+049SZ/xhDqFnvWnJLLK00M405pHiln8NlqpHtMvbh/yuZF+YhP5/ mgPtHBCO87e2jvY5LIRKB8z48B/ozaI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1681476709; 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=iWBlwHvWOD4JRJQREhWhtFsot85ORsl/tkKnRk+m6bM=; b=R6e8so7n8jrNI3PtwtasNoioQpQSSaT4qKqOkoNLqDwJY5t2IiVT2nVF2fr3Y80C+Yk4H6 eU0Zv/WklidAQmCg== 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 03658139FC; Fri, 14 Apr 2023 12:51:49 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id CtrRAGVMOWTHdAAAMHmgww (envelope-from ); Fri, 14 Apr 2023 12:51:49 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id 84E78A0732; Fri, 14 Apr 2023 14:51:48 +0200 (CEST) Date: Fri, 14 Apr 2023 14:51:48 +0200 From: Jan Kara To: Christoph Hellwig Cc: "Ritesh Harjani (IBM)" , linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, Jan Kara , "Darrick J . Wong" , Ojaswin Mujoo , Disha Goel Subject: Re: [RFCv3 02/10] libfs: Add __generic_file_fsync_nolock implementation Message-ID: <20230414125148.du7r6ljdyzckoysh@quack3> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_SOFTFAIL,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 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. Honza -- Jan Kara SUSE Labs, CR