path: root/security/selinux/selinuxfs.c
diff options
authorDave Jiang <>2017-02-24 14:56:41 -0800
committerLinus Torvalds <>2017-02-24 17:46:54 -0800
commit11bac80004499ea59f361ef2a5516c84b6eab675 (patch)
treeb971df98b3fa9d4e62b8f4f7b5ec950181df4daa /security/selinux/selinuxfs.c
parent374ad05ab64d696303cec5cc8ec3a65d457b7b1c (diff)
mm, fs: reduce fault, page_mkwrite, and pfn_mkwrite to take only vmf
->fault(), ->page_mkwrite(), and ->pfn_mkwrite() calls do not need to take a vma and vmf parameter when the vma already resides in vmf. Remove the vma parameter to simplify things. [ fix ARM build] Link: Link: Signed-off-by: Dave Jiang <> Signed-off-by: Arnd Bergmann <> Reviewed-by: Ross Zwisler <> Cc: Theodore Ts'o <> Cc: Darrick J. Wong <> Cc: Matthew Wilcox <> Cc: Dave Hansen <> Cc: Christoph Hellwig <> Cc: Jan Kara <> Cc: Dan Williams <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'security/selinux/selinuxfs.c')
1 files changed, 2 insertions, 3 deletions
diff --git a/security/selinux/selinuxfs.c b/security/selinux/selinuxfs.c
index c354807381c1..c9e8a9898ce4 100644
--- a/security/selinux/selinuxfs.c
+++ b/security/selinux/selinuxfs.c
@@ -424,10 +424,9 @@ out:
return ret;
-static int sel_mmap_policy_fault(struct vm_area_struct *vma,
- struct vm_fault *vmf)
+static int sel_mmap_policy_fault(struct vm_fault *vmf)
- struct policy_load_memory *plm = vma->vm_file->private_data;
+ struct policy_load_memory *plm = vmf->vma->vm_file->private_data;
unsigned long offset;
struct page *page;