Re: [RESEND PATCH 0/4] Implement File-Based optimization functionality

From: Christoph Hellwig
Date: Wed Nov 02 2022 - 04:47:20 EST


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.