login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
September
»
22
Re: [PATCH] mm: do_generic_file_read() never gets a NULL 'filp' argument
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Andrew Morton
Subject:
Re: [PATCH] mm: do_generic_file_read() never gets a NULL 'filp' argument
Date: Monday, September 22, 2008 - 1:33 am
On Mon, 22 Sep 2008 11:46:10 +0530 Krishna Kumar <krkumar2@in.ibm.com> wrote:
quoted text
> From: Krishna Kumar <krkumar2@in.ibm.com> > > The 'filp' argument to do_generic_file_read() is never NULL. >
How did you verify this? NFS used to like passing NULL file*'s into VFS functions. I don't recall whether it affected do_generic_file_read().
quoted text
> mm/filemap.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff -ruNp 2.6.27-rc7-org/mm/filemap.c 2.6.27-rc7-new/mm/filemap.c > --- 2.6.27-rc7-org/mm/filemap.c 2008-09-17 12:53:25.000000000 +0530 > +++ 2.6.27-rc7-new/mm/filemap.c 2008-09-17 12:53:59.000000000 +0530 > @@ -1186,8 +1186,7 @@ out: > ra->prev_pos |= prev_offset; > > *ppos = ((loff_t)index << PAGE_CACHE_SHIFT) + offset; > - if (filp) > - file_accessed(filp); > + file_accessed(filp); > } > > int file_read_actor(read_descriptor_t *desc, struct page *page,
--
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] mm: do_generic_file_read() never gets a NULL 'filp ...
, Krishna Kumar
, (Sun Sep 21, 11:16 pm)
Re: [PATCH] mm: do_generic_file_read() never gets a NULL ' ...
, Andrew Morton
, (Mon Sep 22, 1:33 am)
Re: [PATCH] mm: do_generic_file_read() never gets a NULL ' ...
, Christoph Hellwig
, (Mon Sep 22, 1:39 am)
Re: [PATCH] mm: do_generic_file_read() never gets a NULL ' ...
, KOSAKI Motohiro
, (Mon Sep 22, 1:40 am)
Re: [PATCH] mm: do_generic_file_read() never gets a NULL ' ...
, Andrew Morton
, (Mon Sep 22, 10:36 am)
Re: [PATCH] mm: do_generic_file_read() never gets a NULL ' ...
, KOSAKI Motohiro
, (Tue Sep 23, 4:00 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ken Chen
[patch] sched: fix inconsistency when redistribute per-cpu tg->cfs_rq shares.
Hugh Dickins
Re: Linux 2.6.26-rc1 - pgtable_32.c:178 pmd_bad
Bernhard Beck
[PATCH 001/001] usb-serial: Add ThinkOptics WavIT
Oleg Nesterov
Re: [PATCH 4/5] don't panic if /sbin/init exits or killed
Greg KH
[patch 07/21] rtc-pcf8563: detect polarity of century bit automatically
git
:
Jonathan del Strother
Re: [PATCH] Fixing path quoting issues
Gerrit Pape
[PATCH] fix skipping merge-order test with NO_OPENSSL=1.
Linus Torvalds
Re: Implementing branch attributes in git config
Johannes Schindelin
Re: Trying to use git-filter-branch to compress history by removing large, obsolet...
Gerrit Pape
[PATCH] hooks--update: fix test for properly set up project description file
linux-netdev
:
David Miller
Re: [PATCH 04/15] tg3: Preserve LAA when device control is released
Jean-Louis Dupond
Re: tg3 driver not advertising 1000mbit
Sven Wegener
[PATCH] ipvs: Add missing locking during connection table hashing and unhashing
David Miller
Re: [PATCH] qlcnic: dont assume NET_IP_ALIGN is 2
Stephen Hemminger
[PATCH 2/2] sky2: fix transmit state on resume
git-commits-head
:
Linux Kernel Mailing List
[SCSI] scsi ioctl: fix kernel-doc warning
Linux Kernel Mailing List
ALSA: HDA - Correct trivial typos in comments.
Linux Kernel Mailing List
i2c-viapro: Add support for SMBus Process Call transactions
Linux Kernel Mailing List
i2c: Documentation: upgrading clients HOWTO
Linux Kernel Mailing List
[PATCH] fix sysctl_nr_open bugs
openbsd-misc
:
Die Gestalt
Re: How to re-build openssl with SHA1 support?
Edwin Eyan Moragas
Re: managing routes for multiple PPPoE connections
Brian Candler
Re: OBSD's perspective on SELinux
Jonathan Schleifer
Why is getaddrinfo breaking POSIX?
Predrag Punosevac
Re: Kernel developers guide/tutorial
Colocation donated by:
Syndicate