Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp3707661rwi; Wed, 2 Nov 2022 02:05:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM78Kl21S2Kt3/EjvV7WGdO5LgfEReqCTiemG9KQVMZ6623llFxY91ZDF6CHpq3DIghSiPRt X-Received: by 2002:a17:906:f0e:b0:7ad:f165:9797 with SMTP id z14-20020a1709060f0e00b007adf1659797mr6759750eji.728.1667379935670; Wed, 02 Nov 2022 02:05:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667379935; cv=none; d=google.com; s=arc-20160816; b=K5mUjm6/ps7bFsfXbnUa5+A9IIOKOX6iGAyM80FI8+TnF+iEpEQjHGKRTY7nWIxo7R l0xD48gfwK5uv5ATtmLTvIlGG1j4V/Tu4Wk7eJzDujYN7PB8hYDKaQtJo6hdxAQAtkdZ IOCdb27dGG/XQpSztgaT1HNgXY8WQkr6AuZNhsFCxqm741u7QYaHxjSVsBhyWeiwy0sn ldS9qRJSG9eqBQgp+PYfloCUnIilluHjf0+048bNaWd05P5bBHj30uQBiLvgtaNI+dpJ mb/J9GJEtLTTtXuUm2LJjBbOR2WmAdbqRNWH3/iPck/OlV0oT7WyAyWoyjwGYhjFa1mM VXOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xlxIQG6wHiobj7EMkVPzuU4tyEqo1vs2vAZ1m4b7gNY=; b=Ezezu2bjY1/1RXlRJfa56Nzz3F+Le6slD5ZdfUw2XuwMhCtQ/dBXddbfJkxOqmjYik //apPEkiqD77ceYFCcVJYiiabToWhHFF/Hagl6fuEnYVJnBZFV9r1Rwi95XFPKTRhbZ3 1uBYRczIVbnNw0x+aNyEBwbIMaabNog5rFYH5NHKDUit0dOtstlW/oOIc48TaCzTYBTu XCIOawwiW5vIcm134hM2MhSw8BNQas3ICuOLzd+NFctqUDxfoDejZUo4fVi+vCVxwb7h 8VTK5GabBrdxfp7DipKRtmnMcm1KbHJ97+ikOoGgtNWVdUnA/duWFz3D9MF0byJ1GjV7 5/iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="YaIU/yVi"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k11-20020a170906128b00b0078d0f57b0e2si10525906ejb.412.2022.11.02.02.05.12; Wed, 02 Nov 2022 02:05:35 -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=@infradead.org header.s=bombadil.20210309 header.b="YaIU/yVi"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229533AbiKBIrP (ORCPT + 97 others); Wed, 2 Nov 2022 04:47:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231214AbiKBIrG (ORCPT ); Wed, 2 Nov 2022 04:47:06 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 478A724F22; Wed, 2 Nov 2022 01:47:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=xlxIQG6wHiobj7EMkVPzuU4tyEqo1vs2vAZ1m4b7gNY=; b=YaIU/yVi9zCjwBrW+5AnzlFTDN olra+mKuZ33kODGoVZbzkh1mawAUw6FBXiFaCS6lgkxDDFIibwgS9hrSlU8w3VdM3xYmfxicAgM6C nJbZrZ6M70q8nEpq8X51XbE+Cnq+ll4PRihsVsliQnIeqAbkJNR6or6XE5uB2KmdCNcq4jGgkqOHa JbO5ryXNGFdNf9O7mbZtFtVP3xlM+N6oks0hXRm5N7PVNhhymE7bIOcfBvMigmwsAQPvBWVmWsn8+ FINQ2YYMFeJ+ukYjHunJRlMM2yQKEhfd2gBaqTbnGTDXnpFX4jAd5aHlI5TlGT1fjZeIRkBRTdaT9 sxWD+xRA==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1oq9Om-0099y3-N3; Wed, 02 Nov 2022 08:47:00 +0000 Date: Wed, 2 Nov 2022 01:47:00 -0700 From: Christoph Hellwig To: Jiaming Li Cc: alim.akhtar@samsung.com, avri.altman@wdc.com, bvanassche@acm.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, lijiaming3 Subject: Re: [RESEND PATCH 0/4] Implement File-Based optimization functionality Message-ID: References: <20221102053058.21021-1-lijiaming3@xiaomi.corp-partner.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221102053058.21021-1-lijiaming3@xiaomi.corp-partner.google.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham 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 On Wed, Nov 02, 2022 at 01:30:54PM +0800, Jiaming Li wrote: > 1) The host let the device know of lba range(s) of interest. Those > ranges are typically associated with a specific file. One can > obtain it from the iNode of the file and some offset calculations. This is completely and utter madness. Files are a logic concept, that is non-unique (reflinks, snapshot) and can change at any time (defragmentation, GC, dedup). Whoever came up with this scheme is on crack and the it has no business being in the Linux kernel NAK.