]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - fs/dax.c
dax: Fix dax_unlock_mapping_entry for PMD pages
authorMatthew Wilcox <willy@infradead.org>
Fri, 16 Nov 2018 20:07:31 +0000 (15:07 -0500)
committerMatthew Wilcox <willy@infradead.org>
Sat, 17 Nov 2018 17:07:52 +0000 (12:07 -0500)
commitfda490d39fc0668d92e170d95c11e35a010019aa
treef41bf3ea920aec5da65926157dd3d220fcade6eb
parentc5bbd4515a05f8acb7e6ab6297044a529762cbf5
dax: Fix dax_unlock_mapping_entry for PMD pages

Device DAX PMD pages do not set the PageHead bit for compound pages.
Fix for now by retrieving the PMD bit from the entry, but eventually we
will be passed the page size by the caller.

Reported-by: Dan Williams <dan.j.williams@intel.com>
Fixes: 9f32d221301c ("dax: Convert dax_lock_mapping_entry to XArray")
Signed-off-by: Matthew Wilcox <willy@infradead.org>
fs/dax.c