--- a/mm/shmem.c
+++ b/mm/shmem.c
-@@ -2944,6 +2944,16 @@ out:
+@@ -2951,6 +2951,16 @@ out:
/* common code */
/**
* shmem_file_setup - get an unlinked file living in tmpfs
* @name: name for dentry (to be seen in /proc/<pid>/maps
-@@ -3021,10 +3031,7 @@ int shmem_zero_setup(struct vm_area_stru
+@@ -3028,11 +3038,8 @@ int shmem_zero_setup(struct vm_area_stru
if (IS_ERR(file))
return PTR_ERR(file);
+
return 0;
}
+
--- a/fs/file.c
+++ b/fs/file.c
@@ -268,6 +268,7 @@ int expand_files(struct files_struct *fi
--- a/mm/memory.c
+++ b/mm/memory.c
-@@ -1393,6 +1393,7 @@ unsigned long zap_page_range(struct vm_a
+@@ -1395,6 +1395,7 @@ unsigned long zap_page_range(struct vm_a
tlb_finish_mmu(&tlb, address, end);
return end;
}
/**
* zap_vma_ptes - remove ptes mapping the vma
-@@ -2819,6 +2820,7 @@ int vmtruncate_range(struct inode *inode
-
+@@ -3014,6 +3015,7 @@ static inline int check_stack_guard_page
+ }
return 0;
}
+EXPORT_SYMBOL_GPL(vmtruncate_range);