Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp55693rdb; Fri, 5 Jan 2024 02:32:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IGxvdfztf+St6iwXRFCU+fGXe81Qs8uWbPh8dGl7fGXJ30tCvwEMywMAArjisW2pLM+UwVP X-Received: by 2002:a05:6a20:918a:b0:197:2feb:4954 with SMTP id v10-20020a056a20918a00b001972feb4954mr1833606pzd.0.1704450740898; Fri, 05 Jan 2024 02:32:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704450740; cv=none; d=google.com; s=arc-20160816; b=P1SkXiUFlirbo0nHOBghecZXwXeHt9Tc6wiqG2TQawQhCNR7Bpt4ayeZE+jGXQlYiJ T/U28gSxCJCEuut1nIBngl5ZGwW9Mxp/dnJKjPHd4gJVUQxppepZBoIkKdUs6J4TgLLZ I2JZHzVEiqRqy5oakRflZrB/X/FxuIXRk318cUDrNykEvD3gIfyweWPvZ6NPzePnz30Y eCH91+cOwPCzFFpwm/oUBp29Jg+lbrjZjOoTui10wO86K8JJSFtWQWBgB5CSXsWXs1sg nugj3083ha4ltOM94zBqWm2FIfj5GyyqVKoAREPdy/NvwLye5NK9Om3uh2RsnT7ygF2D kdvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:user-agent:date:message-id:from :references:cc:to:subject; bh=clEf2UdPQt+ZyiAiMH/cVR/WP/hftYQNA0ZvCKc9Hp0=; fh=YRy09SlRClH0WeiD6FUUd/Bx97tiX9jQnCaMs870ovU=; b=LkG2sL7WiibrKJ7j6+TnvVn331wxdcc50fQJn0dPAg1y20ihT2sUsTPiEe+yoAziFv qvEJYwLru6hhBSj/5TKOaOdAxyn5rNNLO+eim3kWODTGHwMvV2SsJHBPHFvS4PATxeBF 7Aq247dEsX2oqtTcfpzJSCVvTqxPZLPU68+iX/5cI7tWz/bT2SOrzXA5VE6ENIXLK8v+ a5zIEQUkGFVlnLpq+I8IKFsuya8LX52oNMjDZEWdnQJ4clct/C4MRQEiJgnkUaNIFVjk QL0TRpF4RhfDFubX/35mpNi0HazE08jr2fLnEzQpy3GvWXex4p7+H6/FybSJmEYhECVU GVZA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4+bounces-728-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-728-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id c8-20020a170902d48800b001d4e7ad3808si956473plg.590.2024.01.05.02.32.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 02:32:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-728-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; spf=pass (google.com: domain of linux-ext4+bounces-728-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-728-linux.lists.archive=gmail.com@vger.kernel.org" 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 91B252818F5 for ; Fri, 5 Jan 2024 10:32:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 926422836A; Fri, 5 Jan 2024 10:32:05 +0000 (UTC) X-Original-To: linux-ext4@vger.kernel.org Received: from dggsgout11.his.huawei.com (unknown [45.249.212.51]) (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 27C35250EB; Fri, 5 Jan 2024 10:32:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=huaweicloud.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=huaweicloud.com Received: from mail.maildlp.com (unknown [172.19.93.142]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4T60BJ2M2vz4f3lWH; Fri, 5 Jan 2024 18:31:52 +0800 (CST) Received: from mail02.huawei.com (unknown [10.116.40.112]) by mail.maildlp.com (Postfix) with ESMTP id 063191A0817; Fri, 5 Jan 2024 18:31:58 +0800 (CST) Received: from [10.174.176.73] (unknown [10.174.176.73]) by APP1 (Coremail) with SMTP id cCh0CgDX2xGZ2pdlGeddFg--.44050S3; Fri, 05 Jan 2024 18:31:56 +0800 (CST) Subject: Re: [PATCH RFC v3 for-6.8/block 04/17] mtd: block2mtd: use bdev apis To: Christoph Hellwig , Jan Kara Cc: Yu Kuai , 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> <20231221085712.1766333-5-yukuai1@huaweicloud.com> <20240104112855.uci45hhqaiitmsir@quack3> From: Yu Kuai Message-ID: <28237ec3-c3c1-1f0c-5250-04a88845d4a6@huaweicloud.com> Date: Fri, 5 Jan 2024 18:31:53 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=gbk; format=flowed Content-Transfer-Encoding: 8bit X-CM-TRANSID:cCh0CgDX2xGZ2pdlGeddFg--.44050S3 X-Coremail-Antispam: 1UD129KBjvdXoW7XryUXFWDtw1fXr4DKF17Jrb_yoWxuFgEgF yvkFZrKa13JrZ2vFsxKw15tFZ2ya47Zry8JrW0qay7W3s5Xa9rG3WkGr13XF1qqan7WFnI 9r9FqayrKay2qjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbaxFF20E14v26rWj6s0DM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8w A2z4x0Y4vE2Ix0cI8IcVAFwI0_tr0E3s1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Gr1j 6F4UJwA2z4x0Y4vEx4A2jsIE14v26rxl6s0DM28EF7xvwVC2z280aVCY1x0267AKxVW0oV Cq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0 I7IYx2IY67AKxVWUJVWUGwAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r1j6r 4UM4x0Y48IcVAKI48JM4x0x7Aq67IIx4CEVc8vx2IErcIFxwACI402YVCY1x02628vn2kI c2xKxwCYjI0SjxkI62AI1cAE67vIY487MxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4 AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE 17CEb7AF67AKxVWrXVW8Jr1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCw CI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF04k26cxKx2IYs7xG6rWUJVWr Zr1UMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYx BIdaVFxhVjvjDU0xZFpf9x0JUd8n5UUUUU= X-CM-SenderInfo: 51xn3trlr6x35dzhxuhorxvhhfrp/ Hi, ?? 2024/01/05 14:10, Christoph Hellwig ะด??: > On Thu, Jan 04, 2024 at 12:28:55PM +0100, Jan Kara wrote: >> What do you think? Because when we are working with the folios it is rather >> natural to use their mapping for dirty balancing? > > The real problem is that block2mtd pokes way to deep into block > internals. > > I think the saviour here is Christians series to replace the bdev handle > with a struct file, which will allow to use the normal file write path > here and get rid of the entire layering volation. Yes, looks like lots of patches from this set is not needed anymore. I'll stop sending v4 and just send some patches that is not related to 'bd_inode' separately. Thanks, Kuai > > . >