Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2086470rdb; Tue, 3 Oct 2023 09:45:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGC/BNvQlCk3chv9aUsQbRXdFNfhqpAsziAvIjmFwEEQPHgWfLZfG2hfl7U1/caTrJKXGmt X-Received: by 2002:a05:6a00:1888:b0:691:320:b551 with SMTP id x8-20020a056a00188800b006910320b551mr123707pfh.34.1696351547457; Tue, 03 Oct 2023 09:45:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696351547; cv=none; d=google.com; s=arc-20160816; b=PyTngriQS/GpZ+Y1rACP8e4hlknXxBhlm5HvUXq/8EliCB5lJBlYCjWfx7ou3nj0ty 3rFpJuqsr0CTMDN8cJzu+HjyFmU4bEyJrywqft9t6qrKocclLKb70rscm//MU1a5sG0B 7vhTv05iBn4AfnW7hya63qNyjLwWmFic7KiVsM+PIH/tMlFLhH/94cSgjraiqvv3x2Xr mD98MonYVD3ptNcSncWdYvn+Hx71B7q9/ZPPePzXbu9KLaxSl+qa9y5g7IXQdX/EzoRB h8Hc73tDhX7imD/B2BMHgFakIk2ZmO0xGiJCktKZHI8beu/YKie17Z9UOnraws9nSV7L QwIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=FXhSrsitouTtG4jnIpF6WlTXUJWU1AdtRoPHLHegjNE=; fh=We7zvi8mcHjAGJwWEk3OTtILBNFID+0I0AYuJbW3u7Q=; b=dY5xDd3hfgMZSeI8f4JIHcL2FzgGOgzjA22etejITNmStg/HY5NKQikMGeMmiXDnN/ p82Ouls9ot0eFQovDR1Pm/F38nk1RoqDf138T1nkhO18QrAuECNKRZJlwKlo6+Q6+CFz JV4nr71sg3s1UPRU0Rf7RoOKksQB+lx4X6GmK2vuPAsWYBSO1FW8SfjwWBa/hHir04nq bPBZJBZAyvK1il6/Nb57R2nBrzZF9dLrnNYQXF0kzG1UW+kLcahaNS0LzFQGYzCIHex2 gm4p1rYsj2tgaUF+ZaE6r7RFOjkYqV1xQW1L4367EmElxjB6UHUkLZqxR48r2/ttGZ61 4xUg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=acm.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id bt6-20020a056a00438600b0069100d1fc37si1867095pfb.49.2023.10.03.09.45.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 09:45:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=acm.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 57922817C3EB; Tue, 3 Oct 2023 09:45:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230207AbjJCQpg (ORCPT + 99 others); Tue, 3 Oct 2023 12:45:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232066AbjJCQpf (ORCPT ); Tue, 3 Oct 2023 12:45:35 -0400 Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49827AC; Tue, 3 Oct 2023 09:45:32 -0700 (PDT) Received: by mail-pj1-f44.google.com with SMTP id 98e67ed59e1d1-2774f6943b1so846464a91.0; Tue, 03 Oct 2023 09:45:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696351532; x=1696956332; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=FXhSrsitouTtG4jnIpF6WlTXUJWU1AdtRoPHLHegjNE=; b=a+dYzxhGi6fjYnt4lG8eX5xqljr9JMXZ19YT8gocz3oLqjdjQ2sHe/Xv37FIVar891 exQrAW832r44VYRUsQjG1AMi0fmDnQx+byRNwe8/I8FOILjowEp6crsMO8RVKuc7s+Je aWkUDp9AbZHhCCcJhPsG7yuk9UkWsjJIzASWw79hGwOJSmsihY+cVXfZzBYoiBjmM/Ml d4r1Oqh1Z6xo4P9jm5Jt0oeW3t43DMmiBtb26ZRfVpXs8e3/ka8gctHLP/SxRRwYbu8V EqwsyYbOwXJQfe24rXal4h4ryqvg6LWI8fkauHBWwAyPrqy5chnhFZkW7Sbcztfha/+K KIRQ== X-Gm-Message-State: AOJu0Yz68YL6vC0tgX0ecrTPfuDk9I0Snl28UQwjZDUcaM+JU7yJ19C0 pxOrFYHrimB1Ekz09gNvWvo= X-Received: by 2002:a17:90a:5d18:b0:26b:4a9e:3c7e with SMTP id s24-20020a17090a5d1800b0026b4a9e3c7emr14066923pji.4.1696351531639; Tue, 03 Oct 2023 09:45:31 -0700 (PDT) Received: from ?IPV6:2620:15c:211:201:fc96:5ba7:a6f5:b187? ([2620:15c:211:201:fc96:5ba7:a6f5:b187]) by smtp.gmail.com with ESMTPSA id e59-20020a17090a6fc100b0026b70d2a8a2sm1719463pjk.29.2023.10.03.09.45.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 03 Oct 2023 09:45:30 -0700 (PDT) Message-ID: <8e2f4aeb-e00e-453a-9658-b1c4ae352084@acm.org> Date: Tue, 3 Oct 2023 09:45:28 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 10/21] block: Add fops atomic write support Content-Language: en-US To: John Garry , axboe@kernel.dk, kbusch@kernel.org, hch@lst.de, sagi@grimberg.me, jejb@linux.ibm.com, martin.petersen@oracle.com, djwong@kernel.org, viro@zeniv.linux.org.uk, brauner@kernel.org, chandan.babu@oracle.com, dchinner@redhat.com Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, tytso@mit.edu, jbongio@google.com, linux-api@vger.kernel.org References: <20230929102726.2985188-1-john.g.garry@oracle.com> <20230929102726.2985188-11-john.g.garry@oracle.com> <17ee1669-5830-4ead-888d-a6a4624b638a@acm.org> <5d26fa3b-ec34-bc39-ecfe-4616a04977ca@oracle.com> <1adeff8e-e2fe-7dc3-283e-4979f9bd6adc@oracle.com> From: Bart Van Assche In-Reply-To: <1adeff8e-e2fe-7dc3-283e-4979f9bd6adc@oracle.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 03 Oct 2023 09:45:45 -0700 (PDT) On 10/3/23 01:37, John Garry wrote: > I don't think that is_power_of_2(write length) is specific to XFS. I think this is specific to XFS. Can you show me the F2FS code that restricts the length of an atomic write to a power of two? I haven't found it. The only power-of-two check that I found in F2FS is the following (maybe I overlooked something): $ git grep -nH is_power fs/f2fs fs/f2fs/super.c:3914: if (!is_power_of_2(zone_sectors)) { Thanks, Bart.