summaryrefslogtreecommitdiffstats
path: root/mm/mmap.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2020-11-05 17:05:35 +0100
committerChristian König <christian.koenig@amd.com>2020-11-05 17:08:43 +0100
commite40b0b56ffdc16edce207904a7782da6a1a47162 (patch)
tree53dfe71f25c1525d5b52474ec9d18460c2cc66fc /mm/mmap.c
parentdma-buf: Fix static checker warning (diff)
downloadlinux-e40b0b56ffdc16edce207904a7782da6a1a47162.tar.xz
linux-e40b0b56ffdc16edce207904a7782da6a1a47162.zip
Revert "mm: introduce vma_set_file function v4"
The kernel test robot is not happy with that. This reverts commit 2b5b95b1ff3d70a95013a45e3b5b90f1daf42348. Signed-off-by: Christian König <christian.koenig@amd.com> Acked-by: Daniel Vetter <daniel@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/394773/
Diffstat (limited to 'mm/mmap.c')
-rw-r--r--mm/mmap.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/mm/mmap.c b/mm/mmap.c
index b0093cc69240..30a4e8412a58 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -137,18 +137,6 @@ void vma_set_page_prot(struct vm_area_struct *vma)
}
/*
- * Change backing file, only valid to use during initial VMA setup.
- */
-void vma_set_file(struct vm_area_struct *vma, struct file *file)
-{
- /* Changing an anonymous vma with this is illegal */
- get_file(file);
- swap(vma->vm_file, file);
- fput(file);
-}
-EXPORT_SYMBOL(vma_set_file);
-
-/*
* Requires inode->i_mapping->i_mmap_rwsem
*/
static void __remove_shared_vm_struct(struct vm_area_struct *vma,