Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp8105140rdb; Thu, 4 Jan 2024 20:44:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IFPcVXk8wT7CaoifPxdeUgis67jwtm4o0H+hK090JeabkhH63yoJjutsZ+vUFMJ3YIKKN7o X-Received: by 2002:a05:622a:1908:b0:425:9a46:365b with SMTP id w8-20020a05622a190800b004259a46365bmr1901990qtc.45.1704429867928; Thu, 04 Jan 2024 20:44:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704429867; cv=none; d=google.com; s=arc-20160816; b=afAWNxajrquH5ZjFqsy+BrAxAHTPueRwnBzNAwfc9ilJwdbjzYbHH7dnVvhwiK6z9k Mw4EnpUeOzw+/Uw0KvX40qovZ6X2XL+csZYBx6KZR9r4AWJelbHai6VAg/xFK8I6++kl Yt57bnCLdQZ8+rD9v73i/Po1p2WJoApuHat1U8R7goGNpEV7Cv1rYExm7X83H5baD6KM 6VQyfnNZ3KlXgBQqNt/7YhFGojMJPwT26IDCmcoiWhkg9/R6KFP9h5jfKv9lFivjw+Cg D0X/Lk398N9GCxVB5T0Fcl62vbmxSXb0hASIO8FfyMV3olvtmZ8npMlz/dcmNQK2Fduu LLVA== ARC-Message-Signature: i=1; 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; bh=x9O9BgUAdB79P2dBVoj9JrNdTeGcWl347MYPSqr4IyU=; fh=PlpLMkipXv0deCvvt6DjINOrBc2hMvKVmwO4K3F696o=; b=UNP4Ranjx8ncgnnn85QBHL6VZROv7sbyKq6BvsdKS9VBoEW5RB575tBoaeHnyBDM91 2nYFrIzbLHz24BiKR3+S4JJ2NK9B1upwwvykBlhGWunXMMugxHq6jk1ZJnI+u/Op+Lst FoDysI0/U4HnU+E8BIurqHIZzLEVG8FaaH0Bg5U5Ox7LZgcrucoIWsBTPx/0fTexH8At EoiK/coA4ZfYWI/Vkbee3Z8UXjBbSog1vlifEPA/2c449ZgU3h2jg+6wEvmkpBU7B9qp sVTpxV8AThuQu8xs5F4qJyT+oI2QbKptvOPrd6I9hkDJXT2VD5yTby8kXDRkqepAPlpV ZmQQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4+bounces-723-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-ext4+bounces-723-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id o13-20020ac85a4d000000b00427f8a608b3si1107177qta.356.2024.01.04.20.44.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 20:44:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-723-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4+bounces-723-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-ext4+bounces-723-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id AAE981C21B0B for ; Fri, 5 Jan 2024 04:44:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1B4B7539C; Fri, 5 Jan 2024 04:44:12 +0000 (UTC) X-Original-To: linux-ext4@vger.kernel.org Received: from out30-110.freemail.mail.aliyun.com (out30-110.freemail.mail.aliyun.com [115.124.30.110]) (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 21CAE5228; Fri, 5 Jan 2024 04:44:06 +0000 (UTC) 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 X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R881e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046060;MF=hsiangkao@linux.alibaba.com;NM=1;PH=DS;RN=49;SR=0;TI=SMTPD_---0VzzUQHt_1704429833; Received: from 30.222.33.160(mailfrom:hsiangkao@linux.alibaba.com fp:SMTPD_---0VzzUQHt_1704429833) by smtp.aliyun-inc.com; Fri, 05 Jan 2024 12:43:56 +0800 Message-ID: Date: Fri, 5 Jan 2024 12:43:52 +0800 Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC v3 for-6.8/block 11/17] erofs: use bdev api To: Yu Kuai , Jan Kara Cc: axboe@kernel.dk, roger.pau@citrix.com, colyli@suse.de, kent.overstreet@gmail.com, joern@lazybastard.org, miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, sth@linux.ibm.com, hoeppner@linux.ibm.com, hca@linux.ibm.com, gor@linux.ibm.com, agordeev@linux.ibm.com, jejb@linux.ibm.com, martin.petersen@oracle.com, clm@fb.com, josef@toxicpanda.com, dsterba@suse.com, viro@zeniv.linux.org.uk, brauner@kernel.org, nico@fluxnic.net, xiang@kernel.org, chao@kernel.org, tytso@mit.edu, adilger.kernel@dilger.ca, jack@suse.com, konishi.ryusuke@gmail.com, willy@infradead.org, akpm@linux-foundation.org, hare@suse.de, p.raghav@samsung.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org, linux-bcache@vger.kernel.org, linux-mtd@lists.infradead.org, linux-s390@vger.kernel.org, linux-scsi@vger.kernel.org, linux-bcachefs@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-erofs@lists.ozlabs.org, linux-ext4@vger.kernel.org, linux-nilfs@vger.kernel.org, yi.zhang@huawei.com, yangerkun@huawei.com, "yukuai (C)" References: <20231221085712.1766333-1-yukuai1@huaweicloud.com> <20231221085826.1768395-1-yukuai1@huaweicloud.com> <20240104120207.ig7tfc3mgckwkp2n@quack3> <7f868579-f993-aaa1-b7d7-eccbe0b0173c@huaweicloud.com> From: Gao Xiang In-Reply-To: <7f868579-f993-aaa1-b7d7-eccbe0b0173c@huaweicloud.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2024/1/4 20:32, Yu Kuai wrote: > Hi, Jan! > > 在 2024/01/04 20:02, Jan Kara 写道: >> On Thu 21-12-23 16:58:26, Yu Kuai wrote: >>> From: Yu Kuai >>> >>> Avoid to access bd_inode directly, prepare to remove bd_inode from >>> block_device. >>> >>> Signed-off-by: Yu Kuai >> >> I'm not erofs maintainer but IMO this is quite ugly and grows erofs_buf >> unnecessarily. I'd rather store 'sb' pointer in erofs_buf and then do the >> right thing in erofs_bread() which is the only place that seems to care >> about the erofs_is_fscache_mode() distinction... Also blkszbits is then >> trivially sb->s_blocksize_bits so it would all seem much more >> straightforward. > > Thanks for your suggestion, I'll follow this unless Gao Xiang has other > suggestions. Yes, that would be better, I'm fine with that. Yet in the future we may support a seperate large dirblocksize more than block size, but we could revisit later. Thanks, Gao Xiang > > Kuai >> >>                                 Honza >>