- generic_file_mmap returns -ENOSYS for NOMMU systems; replicate this
behaviour
Signed-off-by: Enrik Berkhan <[email protected]>
---
fs/nfs/file.c | 4 ++++
1 files changed, 4 insertions(+)
Index: fs/nfs/file.c
===================================================================
--- fs/nfs/file.c.orig 2007-12-05 09:48:59.000000000 +0100
+++ fs/nfs/file.c 2007-12-05 09:49:56.000000000 +0100
@@ -283,7 +283,11 @@ nfs_file_mmap(struct file * file, struct
if (!status) {
vma->vm_ops = &nfs_file_vm_ops;
vma->vm_flags |= VM_CAN_NONLINEAR;
+#ifdef CONFIG_MMU
file_accessed(file);
+#else
+ return -ENOSYS;
+#endif
}
return status;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]