mm, dev_pagemap: Do not clear ->mapping on final put
MEMORY_DEVICE_FS_DAX relies on typical page semantics whereby ->mapping is only ever cleared by truncation, not final put. Without this fix dax pages may forget their mapping association at the end of every page pin event. Move this atypical behavior that HMM wants into the HMM ->page_free() callback. Cc: <stable@vger.kernel.org> Cc: Jan Kara <jack@suse.cz> Cc: Jérôme Glisse <jglisse@redhat.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Ross Zwisler <ross.zwisler@linux.intel.com> Fixes: d2c997c0 ("fs, dax: use page->mapping...") Signed-off-by: NDan Williams <dan.j.williams@intel.com> Acked-by: NJérôme Glisse <jglisse@redhat.com> Signed-off-by: NDave Jiang <dave.jiang@intel.com>
Showing
想要评论请 注册 或 登录