mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Berkhan, Enrik (GE Infra, Oil & Gas)" <enrik.berkhan@ge.com>
To: <trond.myklebust@fys.uio.no>
Cc: <linux-kernel@vger.kernel.org>
Subject: [PATCH 1/1] fix 2.6.24-rc1 nfs_file_mmap change for NOMMU
Date: Sun, 9 Dec 2007 19:52:37 +0100	[thread overview]
Message-ID: <050A770C1DB41144817F02E395E493104CE014@FLRMLVEM02.e2k.ad.ge.com> (raw)

- 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;
 }

             reply	other threads:[~2007-12-09 19:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-09 18:52 Berkhan, Enrik (GE Infra, Oil & Gas) [this message]
2007-12-12  2:40 ` Trond Myklebust
2007-12-12  7:29   ` Berkhan, Enrik (GE Infra, Oil & Gas)
2007-12-12 20:03     ` Trond Myklebust

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=050A770C1DB41144817F02E395E493104CE014@FLRMLVEM02.e2k.ad.ge.com \
    --to=enrik.berkhan@ge.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=trond.myklebust@fys.uio.no \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®