summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorMiles Chen <miles.chen@mediatek.com>2019-09-24 01:39:34 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2019-09-25 01:54:12 +0300
commit28eb3c80871951cae59b9c1b7385262e5d045ac3 (patch)
treea47d3ec0df49dc642b032eb4fa0ee68d845ffb14 /mm
parentf3bc0dba3154fa7e4a728e0be8f37bd5fb9100fe (diff)
downloadlinux-28eb3c80871951cae59b9c1b7385262e5d045ac3.tar.xz
shmem: fix obsolete comment in shmem_getpage_gfp()
Replace "fault_mm" with "vmf" in code comment because commit cfda05267f7b ("userfaultfd: shmem: add userfaultfd hook for shared memory faults") has changed the prototpye of shmem_getpage_gfp() - pass vmf instead of fault_mm to the function. Before: static int shmem_getpage_gfp(struct inode *inode, pgoff_t index, struct page **pagep, enum sgp_type sgp, gfp_t gfp, struct mm_struct *fault_mm, int *fault_type); After: static int shmem_getpage_gfp(struct inode *inode, pgoff_t index, struct page **pagep, enum sgp_type sgp, gfp_t gfp, struct vm_area_struct *vma, struct vm_fault *vmf, vm_fault_t *fault_type); Link: http://lkml.kernel.org/r/20190816100204.9781-1-miles.chen@mediatek.com Signed-off-by: Miles Chen <miles.chen@mediatek.com> Cc: Hugh Dickins <hughd@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/shmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/shmem.c b/mm/shmem.c
index 57a6aedf6649..30ce722c23fa 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -1734,7 +1734,7 @@ unlock:
* vm. If we swap it in we mark it dirty since we also free the swap
* entry since a page cannot live in both the swap and page cache.
*
- * fault_mm and fault_type are only supplied by shmem_fault:
+ * vmf and fault_type are only supplied by shmem_fault:
* otherwise they are NULL.
*/
static int shmem_getpage_gfp(struct inode *inode, pgoff_t index,