login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
30
Re: [PATCH] mmap: restore -ENODEV on missing f_op->mmap
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Randy Dunlap <rdunlap@...>
To: Linus Torvalds <torvalds@...>
Cc: Jeff Mahoney <jeffm@...>, Linux Kernel Mailing List <linux-kernel@...>, Andrew Morton <akpm@...>
Subject:
Re: [PATCH] mmap: restore -ENODEV on missing f_op->mmap
Date: Tuesday, October 30, 2007 - 7:13 pm
On Tue, 30 Oct 2007 15:45:56 -0700 (PDT) Linus Torvalds wrote:
quoted text
> > > On Tue, 30 Oct 2007, Jeff Mahoney wrote: > > > > Personally, I think this is probably a case of LTP codifying existing > > behavior rather than testing the for the specification. If that's the case > > and nobody really cares about the change in behavior, I'm fine letting this > > drop. > > Hmm.. I think it's kind of stupid adding that special case early on, just > to get one particular error case return when there are multiple possible > ones. > > I don't care deeply, but this does smell like a test issue rather than a > code issue. > > Looking at that path, there are *other* things that might be worth > cleaning up, but this wasn't one of them..
Jeff, will you (at least) notify the LTP project of this issue and need for a patch? Thanks.
quoted text
> --- > diff --git a/mm/mmap.c b/mm/mmap.c > index facc1a7..fe286f7 100644 > --- a/mm/mmap.c > +++ b/mm/mmap.c > @@ -893,7 +893,6 @@ unsigned long do_mmap_pgoff(struct file * file, unsigned long addr, > unsigned long flags, unsigned long pgoff) > { > struct mm_struct * mm = current->mm; > - struct inode *inode; > unsigned int vm_flags; > int error; > int accountable = 1; > @@ -959,9 +958,9 @@ unsigned long do_mmap_pgoff(struct file * file, unsigned long addr, > return -EAGAIN; > } > > - inode = file ? file->f_path.dentry->d_inode : NULL; > - > if (file) { > + struct inode *inode = file->f_path.dentry->d_inode; > + > switch (flags & MAP_TYPE) { > case MAP_SHARED: > if ((prot&PROT_WRITE) && !(file->f_mode&FMODE_WRITE)) > -
--- ~Randy -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] mmap: restore -ENODEV on missing f_op->mmap
, Jeff Mahoney
, (Tue Oct 30, 6:20 pm)
Re: [PATCH] mmap: restore -ENODEV on missing f_op->mmap
, Linus Torvalds
, (Tue Oct 30, 6:45 pm)
Re: [PATCH] mmap: restore -ENODEV on missing f_op->mmap
, Jeff Mahoney
, (Tue Oct 30, 9:07 pm)
Re: [PATCH] mmap: restore -ENODEV on missing f_op->mmap
, Randy Dunlap
, (Tue Oct 30, 7:13 pm)
Re: [PATCH] mmap: restore -ENODEV on missing f_op->mmap
, Jeff Mahoney
, (Tue Oct 30, 9:07 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 012/196] nozomi driver
Ingo Molnar
Re: [patch 00/13] Syslets, "Threadlets", generic AIO support, v3
Rafael J. Wysocki
[PATCH -mm 5/6] Freezer: Remove PF_NOFREEZE from bluetooth threads
Ingo Molnar
Re: [PATCH 00/23] per device dirty throttling -v8
git
:
linux-netdev
:
David Miller
[GIT]: Networking
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 15/37] dccp: Set per-connection CCIDs via socket options
Natalie Protasevich
[BUG] New Kernel Bugs
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
1 user
and
1018 guests
online.
Online users
bemagro
Syndicate