login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
January
»
31
Re: [PATCH] mm: remove global locks from mm/highmem.c
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Andrew Morton <akpm@...>
To: David Chinner <dgc@...>
Cc: Martin J. Bligh <mbligh@...>, Peter Zijlstra <a.p.zijlstra@...>, <linux-kernel@...>, <linux-mm@...>, Ingo Molnar <mingo@...>
Subject:
Re: [PATCH] mm: remove global locks from mm/highmem.c
Date: Tuesday, January 30, 2007 - 9:11 pm
On Wed, 31 Jan 2007 11:44:36 +1100 David Chinner <dgc@sgi.com> wrote:
quoted text
> On Mon, Jan 29, 2007 at 06:15:57PM -0800, Andrew Morton wrote: > > We still don't know what is the source of kmap() activity which > > necessitated this patch btw. AFAIK the busiest source is ext2 directories, > > but perhaps NFS under certain conditions? > > > > <looks at xfs_iozero> > > > > ->prepare_write no longer requires that the caller kmap the page. > > Agreed, but don't we (xfs_iozero) have to map it first to zero it? > > I think what you are saying here, Andrew, is that we can > do something like: > > page = grab_cache_page > ->prepare_write(page) > kaddr = kmap_atomic(page, KM_USER0) > memset(kaddr+offset, 0, bytes) > flush_dcache_page(page) > kunmap_atomic(kaddr, KM_USER0) > ->commit_write(page) > > to avoid using kmap() altogether? >
Yup. Even better, use clear_highpage(). -
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: remove global locks from mm/highmem.c
, Peter Zijlstra
, (Sun Jan 28, 10:11 am)
Re: [PATCH] mm: remove global locks from mm/highmem.c
, Andrew Morton
, (Sun Jan 28, 6:29 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c
, Ingo Molnar
, (Mon Jan 29, 3:08 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c
, Nick Piggin
, (Mon Jan 29, 10:02 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c
, Ingo Molnar
, (Mon Jan 29, 4:06 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c
, Hugh Dickins
, (Mon Jan 29, 3:19 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c
, Ingo Molnar
, (Mon Jan 29, 3:53 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c
, Peter Zijlstra
, (Mon Jan 29, 5:44 am)
Re: [PATCH] mm: remove global locks from mm/highmem.c
, Martin J. Bligh
, (Mon Jan 29, 9:31 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c
, Andrew Morton
, (Mon Jan 29, 9:41 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c
, Martin J. Bligh
, (Mon Jan 29, 9:49 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c
, Andrew Morton
, (Mon Jan 29, 10:15 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c
, David Chinner
, (Tue Jan 30, 8:44 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c
, Andrew Morton
, (Tue Jan 30, 9:11 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c
, David Chinner
, (Tue Jan 30, 11:22 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c
, Christoph Hellwig
, (Fri Feb 2, 8:05 am)
Re: [PATCH] mm: remove global locks from mm/highmem.c
, David Chinner
, (Fri Feb 2, 7:14 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c
, Matt Mackall
, (Fri Feb 2, 3:24 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c
, David Chinner
, (Fri Feb 2, 7:16 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c
, Nick Piggin
, (Sun Jan 28, 10:52 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c
, Christoph Hellwig
, (Sun Jan 28, 10:49 am)
Re: [PATCH] mm: remove global locks from mm/highmem.c
, Ingo Molnar
, (Sun Jan 28, 11:17 am)
Re: [PATCH] mm: remove global locks from mm/highmem.c
, Christoph Hellwig
, (Sun Jan 28, 11:28 am)
Re: [PATCH] mm: remove global locks from mm/highmem.c
, Ingo Molnar
, (Sun Jan 28, 11:48 am)
Re: [PATCH] mm: remove global locks from mm/highmem.c
, Christoph Hellwig
, (Sun Jan 28, 11:54 am)
Re: [PATCH] mm: remove global locks from mm/highmem.c
, Ingo Molnar
, (Sun Jan 28, 2:19 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 004/196] Chinese: add translation of SubmittingPatches
David Newall
Re: Slow DOWN, please!!!
Andrew Morton
Re: Linux 2.6.21-rc4
git
:
linux-netdev
:
David Miller
[GIT]: Networking
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Dale Farnsworth
Re: [PATCH 01/39] mv643xx_eth: reverse topological sort of functions
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
1 user
and
871 guests
online.
Online users
firewaterdamage
Syndicate