Message ID | 20220129214101.N9rZeRVSg%akpm@linux-foundation.org (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [01/12] include/linux/sysctl.h: fix register_sysctl_mount_point() return type | expand |
--- a/mm/memory-failure.c~memory-failure-fetch-compound_head-after-pgmap_pfn_valid +++ a/mm/memory-failure.c @@ -1596,6 +1596,12 @@ static int memory_failure_dev_pagemap(un } /* + * Pages instantiated by device-dax (not filesystem-dax) + * may be compound pages. + */ + page = compound_head(page); + + /* * Prevent the inode from being freed while we are interrogating * the address_space, typically this would be handled by * lock_page(), but dax pages do not use the page lock. This