Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp674296rwb; Thu, 6 Oct 2022 02:58:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7QpXsmhjmUCzxTz2KDKeMRtHhOue4giQY/V8Ss1SBiVPb1fet5C1EloQLoqmkFU/BlB/8K X-Received: by 2002:a17:907:1c98:b0:78d:3b06:dc8f with SMTP id nb24-20020a1709071c9800b0078d3b06dc8fmr3217428ejc.58.1665050322402; Thu, 06 Oct 2022 02:58:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665050322; cv=none; d=google.com; s=arc-20160816; b=xpLwyzMQ7IDe0tONpQYJPm4bNRr8M5/1oCWEDInM5xZSWG0olMFle+F/2e+5Rod4ls ImfUa5x3ixuW+Mq+6bC5qDmhcj4RAUIlWWBiQeobV7kazZzkXoTaDdZE0AvwhlTnNf+4 p4hQZ0qC1cyLU25KXjP4MYLNbxScoKRpphdTCso9vzrqN8gC3k1RebxSKfku2vhwjyx6 hfKr/wOVAzb70aEngHSthE8MtJM4sKhlZIxMsqobFiJsPKlNmTtV0bMEtOqrbkVushMp BxdUsINMHDimGpDohBp/GWHHb9m5z+jV93NjCbvx6Qem2JbEivPKnyfJy/422yVdiNrd youg== 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=ogIdAYV0BU8EWus85GBp3cFwq4ZzocrCrMeVOE5lBWM=; b=hkz7inHwMVhj00Ms2usQPxJdKzZeEpRo3lUWBwZFiQvSMxppYTm8yQf1TX4RN2jjEd c7ox21ndVBfQKXXqH5VlzCxcuVPgBIW03LdFdfYhXzl63j0h0O2Tp0xlvegS2kqRD1ug fkBg7YUggA5KeBVsYlEYybSRbRD+4cwHVWhP6tGzXUICiUv2vcs7PahKUU5xYZPxL/pW MSSqliwFvwYj1Q4CZXQhnKm1x/qKJJDq6SEe68anJNBWJvZ81Nui6MprnMWMgessfC/z zFGPeYMlCTb4Dtfxdv7AKH1rjnBuVjWJkpjis9eoW1TF9ExjA0/f31vbASdzZEkPkJjq VwNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=TUGg3whQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 hu9-20020a170907a08900b0078219af8361si16030163ejc.883.2022.10.06.02.58.17; Thu, 06 Oct 2022 02:58:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=TUGg3whQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230497AbiJFIeE (ORCPT + 99 others); Thu, 6 Oct 2022 04:34:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231245AbiJFIdm (ORCPT ); Thu, 6 Oct 2022 04:33:42 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14BDC9411C; Thu, 6 Oct 2022 01:33:37 -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=ogIdAYV0BU8EWus85GBp3cFwq4ZzocrCrMeVOE5lBWM=; b=TUGg3whQm37FJ05L4DSFnjJAns RR+fr29Vr9AwrH0dgUR98gNB3JT5YNboOpXzx0ek1KcxGD6LTmXsTFuo0Xlo+6o36R//hJ49vHn0j gJKuI+DnJ3x2UpdVYmEb7vn6ypxMIdev+8RHD44C3zHxi7yIo4/qyVIkC9RIoE5yjScIQ8PWOP1xr jJ4BAsUxrtNo6AvbCwUQX39G0hMERbYad84Gf7/HH4MYDKO11TONDhpBHwnIitdhgHvY7+fDXxqIt wyR05XPCMWM0rjL3UhvJbw8t9RtDgAT2ks69dLeDNPYLLCFQty4U6YYZrsMcW6Lg194NG4FDdqEqB ggEMOmJg==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1ogMJy-000ips-6T; Thu, 06 Oct 2022 08:33:34 +0000 Date: Thu, 6 Oct 2022 01:33:34 -0700 From: Christoph Hellwig To: Daeho Jeong , "Darrick J. Wong" Cc: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, kernel-team@android.com, Daeho Jeong , linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v4 2/2] f2fs: introduce F2FS_IOC_START_ATOMIC_REPLACE Message-ID: References: <20221004171351.3678194-1-daeho43@gmail.com> <20221004171351.3678194-2-daeho43@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221004171351.3678194-2-daeho43@gmail.com> 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 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-kernel@vger.kernel.org On Tue, Oct 04, 2022 at 10:13:51AM -0700, Daeho Jeong wrote: > From: Daeho Jeong > > introduce a new ioctl to replace the whole content of a file atomically, > which means it induces truncate and content update at the same time. > We can start it with F2FS_IOC_START_ATOMIC_REPLACE and complete it with > F2FS_IOC_COMMIT_ATOMIC_WRITE. Or abort it with > F2FS_IOC_ABORT_ATOMIC_WRITE. It would be great to Cc Darrick and linux-fsdevel as there have been attempts to do this properly at the VFS level instead of a completely undocumented ioctl.