Re: [RFC PATCH v2 0/7] xfs: reflink & dedupe for fsdax (read/write path).

From: Dave Chinner
Date: Thu Nov 14 2019 - 15:24:11 EST


On Thu, Nov 07, 2019 at 07:30:32PM -0800, Dan Williams wrote:
> On Thu, Nov 7, 2019 at 7:11 PM Shiyang Ruan <ruansy.fnst@xxxxxxxxxxxxxx> wrote:
> >
> > Hi Darrick, Dave,
> >
> > Do you have any comment on this?
>
> Christoph pointed out at ALPSS that this problem has significant
> overlap with the shared page-cache for reflink problem. So I think we
> need to solve that first and then circle back to dax reflink support.
> I'm starting to take a look at that.

I think the DAX side is somewhat simpler because it doesn't really
need to involve the page cache and we don't have to worry about
subtly breaking random filesystems. Hence I'd suggest we sort out a
solution for DAX first, then worry about page cache stuff. The
shared page cache for reflink feature is not a show stopper -
multiple references for DAX is a show stopper. Let's deal with the
DAX problem first.

Cheers,

-Dave.
--
Dave Chinner
david@xxxxxxxxxxxxx