Re: [PATCH 2/2] statx: move STATX_ATTR_DAX attribute handling to filesystems

From: David Howells
Date: Tue Dec 01 2020 - 16:05:40 EST


Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:

> And if IS_DAX() is correct, then why shouldn't this just be done in
> generic code? Why move it to every individual filesystem?

One way of looking at it is that the check is then done for every filesystem -
most of which don't support it. Not sure whether that's a big enough problem
to worry about. The same is true of the automount test too, I suppose...

David