Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp711450lqa; Sun, 28 Apr 2024 00:10:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVXKDRIapAjNI/0iWskl1klrv3m4jD78MIDmsOPvBFkuaN7jpPOtTdhrsB52LaV7m+nRMMzOjWSRHk8d/LQ6tkiKmAr8Bq6Y19Uui7qog== X-Google-Smtp-Source: AGHT+IGLlpbxmEH4xbtedWE61KT+mpktdcqWBVwC645gTstKLZdSXc9AGbA/KIP2D3P6tPWc4ciV X-Received: by 2002:a05:6a20:d046:b0:1af:37bf:d7de with SMTP id hv6-20020a056a20d04600b001af37bfd7demr4875671pzb.7.1714288241264; Sun, 28 Apr 2024 00:10:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714288241; cv=pass; d=google.com; s=arc-20160816; b=bQx/h7qc6PYTjze8lWaAr7+umqYFzqTRX/6ocEoT5Xhe4MTNZLKo+UuLGlSKa+bT+z KsAnEg5RAwH4631pXdnNMvSct0h3DS5fpCPN/cjWXocrw2nuP1L+316ZOzAF6rw26tl7 S/2snX08BJPFQekRRGWhxbapFRiud0lIBis1TvU8Jk/iPwhVg60koKQGdgNbA0MQe/V9 5QXHpHbzJ44OuDfypuNLVSM/BV2wH4g8Hoqr7XaHHHS53TRKPntU8AvxVN4xrjB/B1TY MZkuT77i/BLO1UGUqHKB4lmPWGUdnkMKzWu8vzrlPXgoaC+edVKom8GePfLoinyyhLul rQjg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:date:message-id:dkim-signature; bh=Sn2mnwAKlmzl6ZnCC0H7AzHnFBhpM/ri2hKnjQ/BtIU=; fh=pGJXlUUwfQ/lb4L0fO0xG+2bn+SBfr/6/lfxF2CFhYM=; b=bLT1OE7Wa3u1Z1Z043K0aBt9K/o7uA6BGa6EEdlVIjZD7KxDbdllqeA+4MNH/scUZh NKIKocWxgla+Hl0ZslbhoXObVU1qsnN4hkTnrW+vuTs5cxcyCkdBUXYt52qsMwelCOpe zC7nCkqR2CSJkbU0n9dYFMd42f8YNQdC1W5x7+CeJ/MpP//mTGxMgvavC5TV8QBpX5Uj 3FFHekqie4Xdovetf/G9MkYA0ZRpfnFaFf855iaaZlC1zZrpepJbW8YC7ejMLCHbYSbK QCoCPUsQypvK7T06J+Rd1DvvNbhMxf0M20MjkwXn4DZf1R4xc4LwmSaAaTGQ7XMm7PSh V8FQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=vq3r65ry; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-161295-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161295-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id m129-20020a632687000000b0060cbfbfcde3si4688355pgm.250.2024.04.28.00.10.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Apr 2024 00:10:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161295-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=vq3r65ry; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-161295-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161295-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 839CD281D3A for ; Sun, 28 Apr 2024 07:10:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5334C4F8BD; Sun, 28 Apr 2024 07:10:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="vq3r65ry" Received: from out30-113.freemail.mail.aliyun.com (out30-113.freemail.mail.aliyun.com [115.124.30.113]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D98234E1C9 for ; Sun, 28 Apr 2024 07:10:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.113 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714288234; cv=none; b=uSOaIp8mrP1PE3O8Zr7992OkhGuXQyIgFEZcfQMQxKDYmqkw7SKglUinzaPh9FZIkNFhRuMb9IJnShMxvhIm1YLFZmHR/Y4Ke9YKwMVNK+dqotr+0bZlTgnEhs/hibpSr7V3SsQiYulAaD7se01SG5oNnVW+oPEA8EGZdAFi6Bc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714288234; c=relaxed/simple; bh=CaPunSDq6gT4YNN+csrFn06xHWYnhTHm4ajhXQhYrcE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=gxHUdHBYme/+mUFkh8CmV8qN58hYNL0e2mHJ46iC6fSOQp1Ast8zPQE04NBtWvTGtTGXUkcuqOc2ovVVuRVWyK/PWmewUSk/XGvbXILDa0VFWaZXTu9gARvfKcVVgHWrgKkHiIp6zmoYZc+IieSe8ssvRCvC+LmQ2NNrbaGb9OY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=vq3r65ry; arc=none smtp.client-ip=115.124.30.113 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1714288224; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type; bh=Sn2mnwAKlmzl6ZnCC0H7AzHnFBhpM/ri2hKnjQ/BtIU=; b=vq3r65rywdZC45zvFZ50WOo0PlDnt4tbREtWjoCze9foATZSNmF/kNmF7PnKK71QNIrjf0n7XwdnwcyllNyKbfoKHf29gOZjvdxfNWoKvsOwJo16Vc0Q+KHCArYs1fIN18WxUDQYMZBn9bDz0/vTjxDFkMpnQEyo86FO4QXf42A= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R321e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033037067112;MF=hsiangkao@linux.alibaba.com;NM=1;PH=DS;RN=11;SR=0;TI=SMTPD_---0W5Nfk3K_1714288221; Received: from 30.221.129.62(mailfrom:hsiangkao@linux.alibaba.com fp:SMTPD_---0W5Nfk3K_1714288221) by smtp.aliyun-inc.com; Sun, 28 Apr 2024 15:10:23 +0800 Message-ID: <398251ef-6fb1-4c47-a7c7-2035e24fa9a2@linux.alibaba.com> Date: Sun, 28 Apr 2024 15:10:21 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH -next v3 1/2] erofs: get rid of erofs_fs_context To: Baokun Li , linux-erofs@lists.ozlabs.org Cc: xiang@kernel.org, chao@kernel.org, huyue2@coolpad.com, jefflexu@linux.alibaba.com, viro@zeniv.linux.org.uk, brauner@kernel.org, linux-kernel@vger.kernel.org, yangerkun@huawei.com, houtao1@huawei.com References: <20240419123611.947084-1-libaokun1@huawei.com> <20240419123611.947084-2-libaokun1@huawei.com> From: Gao Xiang In-Reply-To: <20240419123611.947084-2-libaokun1@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2024/4/19 20:36, Baokun Li wrote: > Instead of allocating the erofs_sb_info in fill_super() allocate it during > erofs_init_fs_context() and ensure that erofs can always have the info > available during erofs_kill_sb(). After this erofs_fs_context is no longer > needed, replace ctx with sbi, no functional changes. > > Suggested-by: Jingbo Xu > Signed-off-by: Baokun Li Reviewed-by: Gao Xiang Thanks, Gao Xiang