From 9b8ce25ba3ae2f8858e5dbc4547815eeff8aee09 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 16 Mar 2009 22:14:22 +0000 Subject: [PATCH] fix mmap issues caused by the vm_exports patch (thx, danm) SVN-Revision: 14902 --- target/linux/generic-2.6/patches-2.6.27/980-vm_exports.patch | 2 +- target/linux/generic-2.6/patches-2.6.28/980-vm_exports.patch | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target/linux/generic-2.6/patches-2.6.27/980-vm_exports.patch b/target/linux/generic-2.6/patches-2.6.27/980-vm_exports.patch index c11316edf94f..35126ee8ff97 100644 --- a/target/linux/generic-2.6/patches-2.6.27/980-vm_exports.patch +++ b/target/linux/generic-2.6/patches-2.6.27/980-vm_exports.patch @@ -25,7 +25,7 @@ - fput(vma->vm_file); - vma->vm_file = file; - vma->vm_ops = &shmem_vm_ops; -+ shmem_set_file(vma, vma->vm_file); ++ shmem_set_file(vma, file); return 0; } --- a/fs/file.c diff --git a/target/linux/generic-2.6/patches-2.6.28/980-vm_exports.patch b/target/linux/generic-2.6/patches-2.6.28/980-vm_exports.patch index 076102e26f33..3acf980a8507 100644 --- a/target/linux/generic-2.6/patches-2.6.28/980-vm_exports.patch +++ b/target/linux/generic-2.6/patches-2.6.28/980-vm_exports.patch @@ -24,7 +24,7 @@ - fput(vma->vm_file); - vma->vm_file = file; - vma->vm_ops = &shmem_vm_ops; -+ shmem_set_file(vma, vma->vm_file); ++ shmem_set_file(vma, file); return 0; } --- a/fs/file.c -- 2.30.2