Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp610459rwe; Fri, 14 Apr 2023 07:31:21 -0700 (PDT) X-Google-Smtp-Source: AKy350atrb4ho/UPUPatp/y1sQNzHQRe/Fy18/kWdCj4PgkOtT2yJ38KXYE/IlnPjtnD0jr4k3IC X-Received: by 2002:a17:903:2290:b0:1a2:afdd:8476 with SMTP id b16-20020a170903229000b001a2afdd8476mr3371440plh.2.1681482681139; Fri, 14 Apr 2023 07:31:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681482681; cv=none; d=google.com; s=arc-20160816; b=narqQOIikpHFQzJ2AKZDKeMhgwYewvDryP66qkr/sDVL2sKjIlEheb868j5Set6sSp E/g2lrwqZTMQBCpb2bPhal6SYPUMWlStiH0p4NYDqOqLoG9mq9wB9O6t7VU96Mf6ji0K FwIawgUJ3e1c95lzA0xEE26h1TbH9strTNgouRLK8EzIFmeYUG3VwFifQKsdksR1Y4P8 4Ia0lE+tJju1uYNnkrpwWS6UFhR/Zuh9Yqw7ryobTW2u/LrqYMzxfOxn6eeNZBkX/T6q XovKwhP7bZNG0tq8k8M1z7yZMjn2BnOVn6cchKiKFd5cTULXQk+yFnflUYBn648WEx8i Cb9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:subject:cc:to:from:message-id:date :dkim-signature; bh=ZERz3WsJDdC0uDTkNugsv8O4PImMZ58vKvd+AQbFqK4=; b=iSiomF7mqL0/Qa2RcAC1owJiS7i0NGx+Cfi20D8D7GRkDnTyxzlICypHnVwp/nmS/6 FigVgbhj/8Re28mDB4TuTDbizydh2UiSPv3rFEX0JDgXOv5yQ0p2jDdjm+Lc30/XN9Qs 7sswrzASexgFetTnaUhUfT7I5ub24QGqJCWYDvr352vslF5cTlS+QUxxd6svH1l2KssP ZZcC0u27Fuk1ZOl8XtHTL+dBUq2rA9aw9HjSrg2nU744qfnEQM1fqNfsG45nsf8Al6EL q/RDOzHvSo/BsTBefTQEjR3uVsEOrRLfct1fTo/ysa8UGXDWViWNlZan5JiC2YWhEyt7 FRnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=g7knSgfC; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d9-20020a170902cec900b001a1d987fe28si5133591plg.405.2023.04.14.07.31.06; Fri, 14 Apr 2023 07:31:21 -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=@gmail.com header.s=20221208 header.b=g7knSgfC; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229950AbjDNOal (ORCPT + 99 others); Fri, 14 Apr 2023 10:30:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230129AbjDNOah (ORCPT ); Fri, 14 Apr 2023 10:30:37 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7796ECC03; Fri, 14 Apr 2023 07:30:14 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id c10-20020a17090abf0a00b0023d1bbd9f9eso21834416pjs.0; Fri, 14 Apr 2023 07:30:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681482593; x=1684074593; h=in-reply-to:subject:cc:to:from:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=ZERz3WsJDdC0uDTkNugsv8O4PImMZ58vKvd+AQbFqK4=; b=g7knSgfC9VwoBh3Fr6AKYJSqFtPHX1EN0qoevFhSSCBdqMJqI3I2pThm6yJi0H065o AzpJktQo8F3Sf74mMLDQYLEo4uENGOP9K61Ha3Qvx8jORSVxOoD+Q6TZNLqA1DZaanpB FSPFEsgnRiamuCouchrytkUy+V0kekl3qAJxFQQH54IxdXA7VTxNxJ5xUNoA5cezOHBi YMN94z+SgtJVbPuYZgGDfYKfHF+17NzpCKm5Z4ypeYE/Fd0Q/28q8Hc67heXvviBiMDD G4+9EfcMl0bm7Ni/qCqDPrFuSiD/VtN+ytGB2QW+EEv3vqPx3kevICa+IsuuEAsKrwbR Fbhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681482593; x=1684074593; h=in-reply-to:subject:cc:to:from:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ZERz3WsJDdC0uDTkNugsv8O4PImMZ58vKvd+AQbFqK4=; b=MgUec80+20xT7/pKC2h0Ohj8zL7+4EHrp76igZRxNUYim3ey9R3YXQ6rrOAsCC/7Av jP5gssJegftXk0T8ezVbM262GavIK5Bf3LgpkLNowIefx3ZzpXLufBXxg/wrd7D3km/M 0MjAwjmalcWiFWf3mZ+X+mAagzsGUNancLEaCUol5xvsRnWUfi/gStxAzfPigIvRXSin 5+kMFI0lN56as18mBtBoeZIFlUYWBE/WOS08+f8VuZ31ltv2MTd+jdoCTTDdbomKMr/K EAd0JtaNPY0x/BLVVsQJMNOCich5FyrDLb65+NIKOsJHiphNmBjhCdbv+myec+U704Nh lHwg== X-Gm-Message-State: AAQBX9einLIIT17uM2bfH4ox3c7u1rC1JHkPANx4rebu3c99fdeD9f6q 0JaiElwo4yLOVzfgaXIb9oI= X-Received: by 2002:a17:902:cec8:b0:1a6:71b3:42a4 with SMTP id d8-20020a170902cec800b001a671b342a4mr3667528plg.29.1681482593180; Fri, 14 Apr 2023 07:29:53 -0700 (PDT) Received: from rh-tp ([2406:7400:63:7035:9095:349e:5f0b:ded0]) by smtp.gmail.com with ESMTPSA id p19-20020a170902a41300b001a661000398sm3144888plq.103.2023.04.14.07.29.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Apr 2023 07:29:52 -0700 (PDT) Date: Fri, 14 Apr 2023 19:59:42 +0530 Message-Id: <871qkmzgdl.fsf@doe.com> From: Ritesh Harjani (IBM) To: Jan Kara , Christoph Hellwig Cc: Jan Kara , 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 In-Reply-To: <20230414142053.gvekvcgxmkjfeht7@quack3> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 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? -ritesh > > Honza > -- > Jan Kara > SUSE Labs, CR