login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
January
»
23
Re: [PATCH -v8 3/4] Enable the MS_ASYNC functionality in sys_msync()
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Peter Zijlstra <a.p.zijlstra@...>
To: Anton Salikhmetov <salikhmetov@...>
Cc: <linux-mm@...>, <jakob@...>, <linux-kernel@...>, <valdis.kletnieks@...>, <riel@...>, <ksm@...>, <staubach@...>, <jesper.juhl@...>, <torvalds@...>, <akpm@...>, <protasnb@...>, <miklos@...>, <r.e.wolff@...>, <hidave.darkstar@...>, <hch@...>
Subject:
Re: [PATCH -v8 3/4] Enable the MS_ASYNC functionality in sys_msync()
Date: Wednesday, January 23, 2008 - 4:51 am
On Wed, 2008-01-23 at 09:47 +0100, Peter Zijlstra wrote:
quoted text
> On Wed, 2008-01-23 at 02:21 +0300, Anton Salikhmetov wrote:
quoted text
> > +static void vma_wrprotect(struct vm_area_struct *vma) > > +{ > > + unsigned long addr = vma->vm_start; > > + pgd_t *pgd = pgd_offset(vma->vm_mm, addr); > > + > > + while (addr < vma->vm_end) { > > + unsigned long next = pgd_addr_end(addr, vma->vm_end); > > + > > + if (!pgd_none_or_clear_bad(pgd)) > > + vma_wrprotect_pgd_range(vma, pgd, addr, next); > > + > > + ++pgd; > > + addr = next; > > + } > > +} > > I think you want to pass start, end here too, you might not need to > sweep the whole vma.
Also, it still doesn't make sense to me why we'd not need to walk the rmap, it is all the same file after all. --
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 -v8 0/4] Fixing the issue with memory-mapped file times
, Anton Salikhmetov
, (Tue Jan 22, 7:21 pm)
[PATCH -v8 4/4] The design document for memory-mapped file t...
, Anton Salikhmetov
, (Tue Jan 22, 7:21 pm)
Re: [PATCH -v8 4/4] The design document for memory-mapped fi...
, Randy Dunlap
, (Fri Jan 25, 12:27 pm)
Re: [PATCH -v8 4/4] The design document for memory-mapped fi...
, Anton Salikhmetov
, (Fri Jan 25, 12:40 pm)
Re: [PATCH -v8 4/4] The design document for memory-mapped fi...
, Miklos Szeredi
, (Wed Jan 23, 5:26 am)
Re: [PATCH -v8 4/4] The design document for memory-mapped fi...
, Anton Salikhmetov
, (Wed Jan 23, 6:37 am)
Re: [PATCH -v8 4/4] The design document for memory-mapped fi...
, Miklos Szeredi
, (Wed Jan 23, 6:53 am)
Re: [PATCH -v8 4/4] The design document for memory-mapped fi...
, Miklos Szeredi
, (Wed Jan 23, 7:16 am)
Re: [PATCH -v8 4/4] The design document for memory-mapped fi...
, Anton Salikhmetov
, (Wed Jan 23, 8:25 am)
Re: [PATCH -v8 4/4] The design document for memory-mapped fi...
, Miklos Szeredi
, (Wed Jan 23, 9:55 am)
[PATCH -v8 1/4] Massive code cleanup of sys_msync()
, Anton Salikhmetov
, (Tue Jan 22, 7:21 pm)
[PATCH -v8 3/4] Enable the MS_ASYNC functionality in sys_msy...
, Anton Salikhmetov
, (Tue Jan 22, 7:21 pm)
Re: [PATCH -v8 3/4] Enable the MS_ASYNC functionality in sys...
, Linus Torvalds
, (Wed Jan 23, 1:05 pm)
Re: [PATCH -v8 3/4] Enable the MS_ASYNC functionality in sys...
, Nick Piggin
, (Wed Jan 23, 9:36 pm)
Re: [PATCH -v8 3/4] Enable the MS_ASYNC functionality in sys...
, Matt Mackall
, (Thu Jan 24, 2:56 pm)
Re: [PATCH -v8 3/4] Enable the MS_ASYNC functionality in sys...
, Peter Zijlstra
, (Wed Jan 23, 1:41 pm)
Re: [PATCH -v8 3/4] Enable the MS_ASYNC functionality in sys...
, Linus Torvalds
, (Wed Jan 23, 3:35 pm)
Re: [PATCH -v8 3/4] Enable the MS_ASYNC functionality in sys...
, Miklos Szeredi
, (Wed Jan 23, 3:55 pm)
Re: [PATCH -v8 3/4] Enable the MS_ASYNC functionality in sys...
, Linus Torvalds
, (Wed Jan 23, 5:00 pm)
Re: [PATCH -v8 3/4] Enable the MS_ASYNC functionality in sys...
, Miklos Szeredi
, (Wed Jan 23, 5:16 pm)
Re: [PATCH -v8 3/4] Enable the MS_ASYNC functionality in sys...
, Linus Torvalds
, (Wed Jan 23, 5:36 pm)
Re: [PATCH -v8 3/4] Enable the MS_ASYNC functionality in sys...
, Miklos Szeredi
, (Wed Jan 23, 8:05 pm)
Re: [PATCH -v8 3/4] Enable the MS_ASYNC functionality in sys...
, Linus Torvalds
, (Wed Jan 23, 8:11 pm)
Re: [PATCH -v8 3/4] Enable the MS_ASYNC functionality in sys...
, Hugh Dickins
, (Wed Jan 23, 6:29 pm)
Re: [PATCH -v8 3/4] Enable the MS_ASYNC functionality in sys...
, Linus Torvalds
, (Wed Jan 23, 6:41 pm)
Re: [PATCH -v8 3/4] Enable the MS_ASYNC functionality in sys...
, Hugh Dickins
, (Wed Jan 23, 8:03 pm)
Re: [PATCH -v8 3/4] Enable the MS_ASYNC functionality in sys...
, Anton Salikhmetov
, (Wed Jan 23, 1:26 pm)
Re: [PATCH -v8 3/4] Enable the MS_ASYNC functionality in sys...
, Miklos Szeredi
, (Wed Jan 23, 5:41 am)
Re: [PATCH -v8 3/4] Enable the MS_ASYNC functionality in sys...
, Peter Zijlstra
, (Wed Jan 23, 4:47 am)
Re: [PATCH -v8 3/4] Enable the MS_ASYNC functionality in sys...
, Anton Salikhmetov
, (Wed Jan 23, 8:53 am)
Re: [PATCH -v8 3/4] Enable the MS_ASYNC functionality in sys...
, Peter Zijlstra
, (Wed Jan 23, 4:51 am)
Re: [PATCH -v8 3/4] Enable the MS_ASYNC functionality in sys...
, Miklos Szeredi
, (Wed Jan 23, 5:34 am)
Re: [PATCH -v8 3/4] Enable the MS_ASYNC functionality in sys...
, Miklos Szeredi
, (Wed Jan 23, 5:51 am)
Re: [PATCH -v8 3/4] Enable the MS_ASYNC functionality in sys...
, Anton Salikhmetov
, (Wed Jan 23, 9:09 am)
[PATCH -v8 2/4] Update ctime and mtime for memory-mapped files
, Anton Salikhmetov
, (Tue Jan 22, 7:21 pm)
Re: [PATCH -v8 2/4] Update ctime and mtime for memory-mapped...
, Linus Torvalds
, (Wed Jan 23, 2:03 pm)
Re: [PATCH -v8 2/4] Update ctime and mtime for memory-mapped...
, Anton Salikhmetov
, (Wed Jan 23, 7:14 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Rafael J. Wysocki
[Bug #11209] 2.6.27-rc1 process time accounting
Vitaly V. Bursov
Re: Slow file transfer speeds with CFQ IO scheduler in some cases
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Ian Kent
[PATCH 1/4] autofs4 - check for invalid dentry in getpath
git
:
linux-netdev
:
David Miller
Re: [GIT]: Networking
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 0/37] dccp: Feature negotiation - last call for comments
Linus Torvalds
Re: iptables very slow after commit 784544739a25c30637397ace5489eeb6e15d7d49
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
5 users
and
980 guests
online.
Online users
zeekec
sreejithc
puntmuts
lilianit
cruiseschedules
Syndicate