--- a/mm/shmem.c
+++ b/mm/shmem.c
-@@ -2711,6 +2711,16 @@ out:
+@@ -2731,6 +2731,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
-@@ -2788,10 +2798,7 @@ int shmem_zero_setup(struct vm_area_stru
+@@ -2808,10 +2818,7 @@ int shmem_zero_setup(struct vm_area_stru
if (IS_ERR(file))
return PTR_ERR(file);
}
--- a/fs/file.c
+++ b/fs/file.c
-@@ -264,6 +264,7 @@ int expand_files(struct files_struct *fi
+@@ -268,6 +268,7 @@ int expand_files(struct files_struct *fi
/* All good, so we try */
return expand_fdtable(files, nr);
}
/**
* zap_vma_ptes - remove ptes mapping the vma
-@@ -2756,6 +2757,7 @@ int vmtruncate_range(struct inode *inode
+@@ -2763,6 +2764,7 @@ int vmtruncate_range(struct inode *inode
return 0;
}
void *caller)
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
-@@ -871,6 +871,7 @@ extern void __show_free_areas(unsigned i
+@@ -872,6 +872,7 @@ extern void __show_free_areas(unsigned i
int shmem_lock(struct file *file, int lock, struct user_struct *user);
struct file *shmem_file_setup(const char *name, loff_t size, unsigned long flags);