[PATCH 1/1] fix 2.6.24-rc1 nfs_file_mmap change for NOMMU

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <trond.myklebust@...>
Cc: <linux-kernel@...>
Date: Sunday, December 9, 2007 - 2:52 pm

- generic_file_mmap returns -ENOSYS for NOMMU systems; replicate this
  behaviour

Signed-off-by: Enrik Berkhan <Enrik.Berkhan@ge.com>
---
 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;
 }
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/1] fix 2.6.24-rc1 nfs_file_mmap change for NOMMU, Berkhan, Enrik (GE Infra, Oil & Gas)..., (Sun Dec 9, 2:52 pm)
Re: [PATCH 1/1] fix 2.6.24-rc1 nfs_file_mmap change for NOMMU, Trond Myklebust, (Tue Dec 11, 10:40 pm)
Re: [PATCH 1/1] fix 2.6.24-rc1 nfs_file_mmap change for NOMMU, Berkhan, Enrik (GE Infra, Oil & Gas)..., (Wed Dec 12, 3:29 am)