[dm-devel] [PATCH v3 01/11] pagemap: Introduce ->memory_failure()

Christoph Hellwig hch at lst.de
Wed Feb 10 13:20:55 UTC 2021


On Mon, Feb 08, 2021 at 06:55:20PM +0800, Shiyang Ruan wrote:
> When memory-failure occurs, we call this function which is implemented
> by each kind of devices.  For the fsdax case, pmem device driver
> implements it.  Pmem device driver will find out the block device where
> the error page locates in, and try to get the filesystem on this block
> device.  And finally call filesystem handler to deal with the error.
> The filesystem will try to recover the corrupted data if possiable.

I'm not sure adding just a method without any of the support code
is a useful patch on its own.




More information about the dm-devel mailing list