Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp917030rwr; Thu, 20 Apr 2023 07:49:57 -0700 (PDT) X-Google-Smtp-Source: AKy350Z/g4Cq4p7pBNRtJYeFue/ReQyu54OWjtQ3hYUE/HXNl7WUaKdqFkbcFsOzHYyqcWxrryQg X-Received: by 2002:a17:90b:3e82:b0:249:6812:7ce1 with SMTP id rj2-20020a17090b3e8200b0024968127ce1mr1695663pjb.25.1682002196972; Thu, 20 Apr 2023 07:49:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682002196; cv=none; d=google.com; s=arc-20160816; b=siMUUTgHX6O4k+O2IPA2ambp/Vpp/fYNWYF/RI5Yd7bUVVn+9nLxYYTB7CZUfrn74A 8ytbKKa3Jm4VC5Gs9Dv0Z8ieXrqRqnWQESGJyshfuCeasL0awSYIdcwnd8tgxTP/YxGa dyzuZMhbyqWls15sAHJQq1mZMz79ToWM0QnhrwAGoUguo7iw0RrYtIb1cFMeMHoZW0g/ qmLvFz5DnvGCOFGTMfcB1zryWFxa2CPFpCj5BhzFTK7QtB2X4BBWIa1HAvBfAcqAGAhQ teOOzc45KHOEdcA8dy3/s3YJ3NWHAHS+9rM8EenlNvw0tk3Lmi8WjJGlirMVL5CutXkP Pm/g== 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=da4Vpw9yIgdkrWpPKCWhoT5kkyCNSRmtF4QY0pbAdc8=; b=a+bvTtJFgOVUwi7arf767Umeu1Yy1UNbYlK7KgP/LN4BfDdY3LXGAaC69WY6oqCY6U WbqqDhM72XZ8GwPG7llbPXklepbHJPVmNLWFwhewsK3MEtjvFL4xQbrM0fNVxkdwFljJ J3a7xUNFcezpCFXVhQ17b74DxoSE39QAx7EyfogkFuowtH6HCMUJFSpcEAiPvmGNzIki t67V7ZcXiZ6FQxwlteuToYHvwZaDufIaG/d8Iyl4huRvqRqw7PhZ7yD/732mJuGVd1CN UC7aP61BKrMfnXxizJdXuw6JZxF33d+3DOclxDrfyh7gIFVZnvgVaKBs8Dj+mELqL8ra lv+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="X/u3bCgx"; 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 c7-20020a17090ad90700b002473c0c9fe9si4603342pjv.50.2023.04.20.07.49.38; Thu, 20 Apr 2023 07:49:56 -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="X/u3bCgx"; 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 S229980AbjDTOnh (ORCPT + 99 others); Thu, 20 Apr 2023 10:43:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232235AbjDTOne (ORCPT ); Thu, 20 Apr 2023 10:43:34 -0400 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D98D940EE; Thu, 20 Apr 2023 07:43:22 -0700 (PDT) Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1a66911f5faso10508715ad.0; Thu, 20 Apr 2023 07:43:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682001802; x=1684593802; h=in-reply-to:subject:cc:to:from:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=da4Vpw9yIgdkrWpPKCWhoT5kkyCNSRmtF4QY0pbAdc8=; b=X/u3bCgxYxbK4KjrPNgWqProfcLLOgrbgZHZSz09D3NZNc5UFZ/E8gG1Ae1H2xopFh r1gywDsOrIHgcEkxylMFzKzTnZlz+wIBbJwvGonrtxaZzVDtpXsKsog53euDG/MCJX4s caviq4Z1cwCZ3chPDad3cuO9+Wi+TW/PARKgc5bMo/ytPQCjFY4Cy3hkJJcrsHHZkeEq UFgemr//fDEnSvkryX5E0YOTP3xMAanr4x044X0WZ3nWzURD4UYsPeqtXdyzlLqb7NIf yFtjoXJH5MCoRWgnEBNlLTVud9i81DcmVaMTj9+s1QBqKIb+cMUK/pwF744q8XNqFu16 RswA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682001802; x=1684593802; 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=da4Vpw9yIgdkrWpPKCWhoT5kkyCNSRmtF4QY0pbAdc8=; b=jP3qkIRTaX2lhw9emX+5mvyFEgAcvGvR1FiAPtZRgPl8Aro+Ng6sRjdfZlAKosvrA8 +eUdr0Eq91k63szqjE9UVxaimO5tYbhaVKUijK4tdZUU9sWO4BhH/YBTaTGlPJ5QxMdB OI+ghKDSWJA4/4v1p4I91WCXQVp/hTqS98PH4WSch+RitWHnmV53G/qzAuUOC9XDVwo3 1zfeoRgxE8ijK7g6H/CDdKSIxzUE5HFSmj5YWS96402P8JoyZ0hQVP1w+rB4uQn/wlaK CqsB0ltgmZ6c60XnLRDnd65ImOimK6SUhJhCHt2t8+W/TrfAPUb+vhqmNRtWH0LISNdD ro9Q== X-Gm-Message-State: AAQBX9e4wzb2bSyAZaLRzWjxeVNpjlkhFnh3tN/tFpziWKddhAJmIhwZ RZywogI5paVhWhfgiW+FeEk= X-Received: by 2002:a17:902:64c2:b0:1a6:9671:253e with SMTP id y2-20020a17090264c200b001a69671253emr1703970pli.47.1682001802249; Thu, 20 Apr 2023 07:43:22 -0700 (PDT) Received: from rh-tp ([2406:7400:63:2dd2:8818:e6e1:3a73:368c]) by smtp.gmail.com with ESMTPSA id a7-20020a1709027d8700b001a653a32173sm1276530plm.29.2023.04.20.07.43.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Apr 2023 07:43:21 -0700 (PDT) Date: Thu, 20 Apr 2023 20:12:56 +0530 Message-Id: <87jzy6iphr.fsf@doe.com> From: Ritesh Harjani (IBM) To: Christoph Hellwig , Jan Kara Cc: 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 In-Reply-To: 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 Christoph Hellwig writes: > 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. Yes. I was going to use this one as this is more explicit. Thanks Jan & Christoph, I will spin a new revision soon with the suggested changes. -ritesh