Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp119083rwl; Tue, 28 Mar 2023 22:14:39 -0700 (PDT) X-Google-Smtp-Source: AKy350aaTRCq3Rq2aIPkfVDBVe9bHzJxPSbMi3hHRUKo9nxpKzx1Y5ndJDi9ZO+E6B3DEsYrfzO7 X-Received: by 2002:a17:906:7c53:b0:92a:11be:1a40 with SMTP id g19-20020a1709067c5300b0092a11be1a40mr1090207ejp.11.1680066878893; Tue, 28 Mar 2023 22:14:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680066878; cv=none; d=google.com; s=arc-20160816; b=RtKGMLahGm3iqsNCNaZyVVuI+KLF5VysUBEIH+Xk43Jel+EBRYF1myyiLkilSicIMD qA5Cztdw0Y8Xnpz1xvWq/3Dpzk718wYyVzC9m+rKU4DfKBlBJ3ny20/GDoktzBOiuAiL DCBjCWek61O/uqYQtwYsvmbkeF2D2h8THFiBSHZ8Cy0pg76TLYlG0VIN7zOpKNUbD5wY 0hqFn2CelCsdKuCPtRdbU3XL6Bh6QShYOb+MeyEByn1F6vkhm27foep5UTXWQYlRHNsM +F2hi3ey93IZ18ux3I+8EJaUy11l+5+ycB5rFv1ztYELnl9zlxMgDdB1npm4+vow2/fj ZXIA== 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:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=GjcLq9TYMSCEM1QxXkGT3Sk7emAp6wIFay5f/IdlFCI=; b=VDeGbyA5TZjKAM/jKjbtw6sUiGQqsm4pZDXe6xG7zQXvtwu2zGTCz6ayYfv8vRuWcl PJ22BizzwYNr6tu2q5crh6CLHHo/9RotuheuydaNuTI5jP68HPnvnPgWQY5xPDRKTW3O 89AtPeoZ2Kjt1kCOAGeGL+AKseQnuvH2KjJ/lEGHnhJ/f/0TdErMI0HaTmCW/Z31Gm+9 E7y5kYrgo3lcACcOOgiMKLQowB0ekJ7nWZJjWBgDiuLvaATKJsMgFrdpsIZ4o7vo2K9A nidu7yqAF0ZrKs0lidkMqZszKFt2nL5z11qgQrIYpndWfn9YFKRtog++uLif5OKqcxup bPoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=K0sDjl31; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id tx26-20020a1709078e9a00b0093348efaf0asi13390675ejc.198.2023.03.28.22.14.11; Tue, 28 Mar 2023 22:14:38 -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=@bytedance.com header.s=google header.b=K0sDjl31; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229675AbjC2FGl (ORCPT + 99 others); Wed, 29 Mar 2023 01:06:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229529AbjC2FGk (ORCPT ); Wed, 29 Mar 2023 01:06:40 -0400 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48EE82D48 for ; Tue, 28 Mar 2023 22:06:15 -0700 (PDT) Received: by mail-pj1-x1032.google.com with SMTP id p3-20020a17090a74c300b0023f69bc7a68so14961492pjl.4 for ; Tue, 28 Mar 2023 22:06:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1680066375; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=GjcLq9TYMSCEM1QxXkGT3Sk7emAp6wIFay5f/IdlFCI=; b=K0sDjl31CF3wQLECFV0Z+qXmmfbY6/nvHtwhUV+gdNIgedwU6XnM9SL+lkP0AsQS72 h6FxRX1Eba/67jysjsw+a3Yg3lcjnZNMuWL/RMxYWI13y5cB+OWEQQ5vydbpAzqNjOfr b7BgjW9UGv41y2niEKTHlC7uvanY/p4+VdnazRZTgxEnDnuI2QnVTCawr5ErsQq7ZI8k lIYedhZETnOaE3WYyVtJvhXlboS0gTCezU1Pd9aJj7DQehQBnzls4sKZdMakWjKkTLth +8aoJlNSoZ+4tCtPM3zmqdzgfHonxHFdWY5hrfTP0NiwZkAODT53YYfRkVzOwV90Jka/ Hw2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680066375; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=GjcLq9TYMSCEM1QxXkGT3Sk7emAp6wIFay5f/IdlFCI=; b=cjFaB6r+DCoAnzzKIdPJMlJ22YDgWKxKPOP+2vs2iWjx9taio2qSAGUlKpYEn203ML dUBEV73d2WKSJGIrHp9idtTSfjAKPKjM7NWmItZUp2NR5e1GkeXi5Q0+RBC92o8M2eM2 xpZW6fO2s403CsngGQM3bXhbO4wAT6WLgCI1A+BsmzMC0TqfJ0ct2Jnpcsr0wAqkQ1a8 pFrsxXyqLokEO/+mCeDNZtBI24heDJX9mKwajaB5VYF8Ls4/JAVwkuRdhFaw1MZlfynL Iw/pzBzKzCIhQrLJkUtUEJKmU/w0RYceMa611A6bcNWqF7a45WeYHsemk+9Q4mjXvJ+F 9kmQ== X-Gm-Message-State: AAQBX9e5gUa3ShUapsUfwp7QpoBAI32t4nQ9/xeTGwQnmx3S5A/gGWZp JQfeLMwXAceUGp2NvetJo473P56Ado90ADqleWc= X-Received: by 2002:a17:90b:1a88:b0:23e:aba9:d51d with SMTP id ng8-20020a17090b1a8800b0023eaba9d51dmr19242110pjb.7.1680066374750; Tue, 28 Mar 2023 22:06:14 -0700 (PDT) Received: from [10.3.144.50] ([61.213.176.7]) by smtp.gmail.com with ESMTPSA id dw24-20020a17090b095800b0023cff7e39a6sm463394pjb.22.2023.03.28.22.06.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Mar 2023 22:06:14 -0700 (PDT) Message-ID: <1b99542d-f21b-a27b-fc59-d4fe38e893de@bytedance.com> Date: Wed, 29 Mar 2023 13:06:09 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: Re: [PATCH V4 2/5] cachefiles: extract ondemand info field from cachefiles_object To: David Howells Cc: linux-cachefs@redhat.com, linux-erofs@lists.ozlabs.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Jingbo Xu , zhujia.zj@bytedance.com References: <20230111052515.53941-3-zhujia.zj@bytedance.com> <20230111052515.53941-1-zhujia.zj@bytedance.com> <132137.1680011908@warthog.procyon.org.uk> From: Jia Zhu In-Reply-To: <132137.1680011908@warthog.procyon.org.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2023/3/28 21:58, David Howells 写道: > Jia Zhu wrote: > >> @@ -65,10 +71,7 @@ struct cachefiles_object { >> enum cachefiles_content content_info:8; /* Info about content presence */ >> unsigned long flags; >> #define CACHEFILES_OBJECT_USING_TMPFILE 0 /* Have an unlinked tmpfile */ >> -#ifdef CONFIG_CACHEFILES_ONDEMAND >> - int ondemand_id; >> - enum cachefiles_object_state state; >> -#endif >> + struct cachefiles_ondemand_info *private; > > Why is this no longer inside "#ifdef CONFIG_CACHEFILES_ONDEMAND"? > I'll revise it in next version. > Also, please don't call it "private", but rather something like "ondemand" or > "ondemand_info". I'll use @ondemand to replace it. Thanks. > > David >