X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/5ed970594e5968204fd460981508316edc4c0298..80b92379edb6ea6f26f969e63e5b1bf4b20a888f:/target/linux/generic/patches-2.6.38/950-vm_exports.patch diff --git a/target/linux/generic/patches-2.6.38/950-vm_exports.patch b/target/linux/generic/patches-2.6.38/950-vm_exports.patch index d23ce2ce1..7ccede586 100644 --- a/target/linux/generic/patches-2.6.38/950-vm_exports.patch +++ b/target/linux/generic/patches-2.6.38/950-vm_exports.patch @@ -1,6 +1,6 @@ --- a/mm/shmem.c +++ b/mm/shmem.c -@@ -2710,6 +2710,16 @@ out: +@@ -2730,6 +2730,16 @@ out: /* common code */ @@ -17,7 +17,7 @@ /** * shmem_file_setup - get an unlinked file living in tmpfs * @name: name for dentry (to be seen in /proc//maps -@@ -2787,10 +2797,7 @@ int shmem_zero_setup(struct vm_area_stru +@@ -2807,10 +2817,7 @@ int shmem_zero_setup(struct vm_area_stru if (IS_ERR(file)) return PTR_ERR(file); @@ -32,7 +32,7 @@ } --- 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); } @@ -88,7 +88,7 @@ /** * zap_vma_ptes - remove ptes mapping the vma -@@ -2692,6 +2693,7 @@ int vmtruncate_range(struct inode *inode +@@ -2699,6 +2700,7 @@ int vmtruncate_range(struct inode *inode return 0; } @@ -116,7 +116,7 @@ void *caller) --- a/include/linux/mm.h +++ b/include/linux/mm.h -@@ -863,6 +863,7 @@ extern void show_free_areas(void); +@@ -864,6 +864,7 @@ extern void show_free_areas(void); 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);