aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/array.c
diff options
context:
space:
mode:
authorAnshuman Khandual <[email protected]>2019-06-28 19:06:37 +0000
committerLinus Torvalds <[email protected]>2019-06-29 08:43:44 +0000
commit36d6cb73d5e60cdb2724c21ccba93c964e6a16f9 (patch)
treeb73c6c6c3a6d893be4c21c4d8a14f7e7f771df4e /fs/proc/array.c
parentMerge tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/... (diff)
downloadkernel-36d6cb73d5e60cdb2724c21ccba93c964e6a16f9.tar.gz
kernel-36d6cb73d5e60cdb2724c21ccba93c964e6a16f9.zip
mm/dev_pfn: exclude MEMORY_DEVICE_PRIVATE while computing virtual address
The presence of struct page does not guarantee linear mapping for the pfn physical range. Device private memory which is non-coherent is excluded from linear mapping during devm_memremap_pages() though they will still have struct page coverage. Change pfn_t_to_virt() to just check for device private memory before giving out virtual address for a given pfn. pfn_t_to_virt() actually has no callers. Let's fix it for the 5.2 kernel and remove it in 5.3. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Anshuman Khandual <[email protected]> Cc: Dan Williams <[email protected]> Cc: Jérôme Glisse <[email protected]> Cc: Laurent Dufour <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions