diff options
author | Christoph Hellwig <hch@lst.de> | 2019-06-26 14:27:04 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-07-02 14:32:44 -0300 |
commit | b7a523109fb5c9d2d6dd3ffc1fa38a4f48c6f842 (patch) | |
tree | ba38dcbea9d55acb953a05c5805119111cb19f7e /mm | |
parent | 25b2995a35b609119cf96f6b62eccd56c0234c7d (diff) | |
download | linux-stable-b7a523109fb5c9d2d6dd3ffc1fa38a4f48c6f842.tar.gz linux-stable-b7a523109fb5c9d2d6dd3ffc1fa38a4f48c6f842.tar.bz2 linux-stable-b7a523109fb5c9d2d6dd3ffc1fa38a4f48c6f842.zip |
mm: don't clear ->mapping in hmm_devmem_free
->mapping isn't even used by HMM users, and the field at the same offset
in the zone_device part of the union is declared as pad. (Which btw is
rather confusing, as DAX uses ->pgmap and ->mapping from two different
sides of the union, but DAX doesn't use hmm_devmem_free).
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Reviewed-by: John Hubbard <jhubbard@nvidia.com>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/hmm.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -1383,8 +1383,6 @@ static void hmm_devmem_free(struct page *page, void *data) { struct hmm_devmem *devmem = data; - page->mapping = NULL; - devmem->ops->free(devmem, page); } |