login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
January
»
22
Re: [PATCH -v7 2/2] Update ctime and mtime for memory-mapped files
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Anton Salikhmetov <salikhmetov@...>
To: Jesper Juhl <jesper.juhl@...>
Cc: <linux-mm@...>, <jakob@...>, <linux-kernel@...>, <valdis.kletnieks@...>, <riel@...>, <ksm@...>, <staubach@...>, <torvalds@...>, <a.p.zijlstra@...>, <akpm@...>, <protasnb@...>, <miklos@...>, <r.e.wolff@...>, <hidave.darkstar@...>, <hch@...>
Subject:
Re: [PATCH -v7 2/2] Update ctime and mtime for memory-mapped files
Date: Monday, January 21, 2008 - 9:57 pm
2008/1/22, Jesper Juhl <jesper.juhl@gmail.com>:
quoted text
> On 22/01/2008, Anton Salikhmetov <salikhmetov@gmail.com> wrote: > > 2008/1/22, Jesper Juhl <jesper.juhl@gmail.com>: > > > Some very pedantic nitpicking below; > > > > > > On 22/01/2008, Anton Salikhmetov <salikhmetov@gmail.com> wrote: > ... > > > > + if (file && (vma->vm_flags & VM_SHARED)) { > > > > + if (flags & MS_ASYNC) > > > > + vma_wrprotect(vma); > > > > + if (flags & MS_SYNC) { > > > > > > "else if" ?? > > > > The MS_ASYNC and MS_SYNC flags are mutually exclusive, that is why I > > did not use the "else-if" here. Moreover, this function itself checks > > that they never come together. > > > > I would say that them being mutually exclusive would be a reason *for* > using "else-if" here.
This check is performed by the sys_msync() function itself in its very beginning. We don't need to check it later.
quoted text
> > -- > Jesper Juhl <jesper.juhl@gmail.com> > Don't top-post
http://www.catb.org/~esr/jargon/html/T/top-post.html
> Plain text mails only, please
http://www.expita.com/nomime.html
>
--
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 -v7 0/2] Fixing the issue with memory-mapped file times
, Anton Salikhmetov
, (Mon Jan 21, 8:32 pm)
Re: [PATCH -v7 0/2] Fixing the issue with memory-mapped file...
, Jesper Juhl
, (Mon Jan 21, 9:34 pm)
Re: [PATCH -v7 0/2] Fixing the issue with memory-mapped file...
, Anton Salikhmetov
, (Mon Jan 21, 9:40 pm)
[PATCH -v7 2/2] Update ctime and mtime for memory-mapped files
, Anton Salikhmetov
, (Mon Jan 21, 8:32 pm)
Re: [PATCH -v7 2/2] Update ctime and mtime for memory-mapped...
, Andi Kleen
, (Tue Jan 22, 12:39 am)
Re: [PATCH -v7 2/2] Update ctime and mtime for memory-mapped...
, Linus Torvalds
, (Mon Jan 21, 10:16 pm)
Re: [PATCH -v7 2/2] Update ctime and mtime for memory-mapped...
, Anton Salikhmetov
, (Mon Jan 21, 10:39 pm)
Re: [PATCH -v7 2/2] Update ctime and mtime for memory-mapped...
, Miklos Szeredi
, (Tue Jan 22, 4:52 am)
Re: [PATCH -v7 2/2] Update ctime and mtime for memory-mapped...
, Jesper Juhl
, (Mon Jan 21, 9:40 pm)
Re: [PATCH -v7 2/2] Update ctime and mtime for memory-mapped...
, Anton Salikhmetov
, (Mon Jan 21, 9:51 pm)
Re: [PATCH -v7 2/2] Update ctime and mtime for memory-mapped...
, Jesper Juhl
, (Mon Jan 21, 9:54 pm)
Re: [PATCH -v7 2/2] Update ctime and mtime for memory-mapped...
, Anton Salikhmetov
, (Mon Jan 21, 9:57 pm)
Re: [PATCH -v7 2/2] Update ctime and mtime for memory-mapped...
, Jesper Juhl
, (Mon Jan 21, 10:18 pm)
Re: [PATCH -v7 2/2] Update ctime and mtime for memory-mapped...
, Anton Salikhmetov
, (Mon Jan 21, 10:07 pm)
Re: [PATCH -v7 2/2] Update ctime and mtime for memory-mapped...
, Jesper Juhl
, (Mon Jan 21, 10:16 pm)
[PATCH -v7 1/2] Massive code cleanup of sys_msync()
, Anton Salikhmetov
, (Mon Jan 21, 8:32 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
hooanon05
[PATCH 67/67] merge aufs
Greg Kroah-Hartman
[PATCH 008/196] Chinese: add translation of volatile-considered-harmful.txt
monstr
[PATCH 33/52] [microblaze] bug headers files
Oliver Pinter
Re: x86: 4kstacks default
git
:
linux-netdev
:
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 15/37] dccp: Set per-connection CCIDs via socket options
David Miller
[GIT]: Networking
Natalie Protasevich
[BUG] New Kernel Bugs
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
8 users
and
852 guests
online.
Online users
cordic
zeekec
lithoniachirop
mortgagerefico
consignmentqms
truckparty17
cateringpalmbe
rockytherobohl
Syndicate