login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
8
Re: [PATCH]fix page release issue in filemap_fault
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Peter Zijlstra <peterz@...>
To: Yan Zheng <yanzheng@...>
Cc: <linux-mm@...>, <linux-kernel@...>, <akpm@...>
Subject:
Re: [PATCH]fix page release issue in filemap_fault
Date: Monday, October 8, 2007 - 1:15 pm
On Mon, 2007-10-08 at 23:28 +0800, Yan Zheng wrote:
quoted text
> Hi all > > find_lock_page increases page's usage count, we should decrease it > before return VM_FAULT_SIGBUS > > Signed-off-by: Yan Zheng<yanzheng@21cn.com>
Nice catch, .23 material? Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
quoted text
> ---- > diff -ur linux-2.6.23-rc9/mm/filemap.c linux/mm/filemap.c > --- linux-2.6.23-rc9/mm/filemap.c 2007-10-07 15:03:33.000000000 +0800 > +++ linux/mm/filemap.c 2007-10-08 23:14:39.000000000 +0800 > @@ -1388,6 +1388,7 @@ > size = (i_size_read(inode) + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT; > if (unlikely(vmf->pgoff >= size)) { > unlock_page(page); > + page_cache_release(page); > goto outside_data_content; > }
-
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]fix page release issue in filemap_fault
, Yan Zheng
, (Mon Oct 8, 11:28 am)
Re: [PATCH]fix page release issue in filemap_fault
, Peter Zijlstra
, (Mon Oct 8, 1:15 pm)
Re: [PATCH]fix page release issue in filemap_fault
, Rik van Riel
, (Mon Oct 8, 1:23 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Theodore Tso
Re: -mm merge plans for 2.6.23 -- sys_fallocate
Amit K. Arora
[RFC] Heads up on sys_fallocate()
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg Kroah-Hartman
[PATCH 011/196] sysfs: Fix a copy-n-paste typo in comment
git
:
linux-netdev
:
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
David Miller
Re: [GIT]: Networking
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Frans Pop
svc: failed to register lockdv1 RPC service (errno 97).
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
1 user
and
1053 guests
online.
Online users
zeekec
Syndicate