From: Miklos Szeredi <miklos@szeredi.hu>
To: a.p.zijlstra@chello.nl
Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org,
linux-mm@kvack.org
Subject: Re: [patch 2/2] only allow nonlinear vmas for ram backed filesystems
Date: Thu, 05 Apr 2007 11:39:52 +0200 [thread overview]
Message-ID: <E1HZORc-0000UZ-00@dorka.pomaz.szeredi.hu> (raw)
In-Reply-To: <1175765760.6483.93.camel@twins> (message from Peter Zijlstra on Thu, 05 Apr 2007 11:36:00 +0200)
> > + /*
> > + * page_mkclean doesn't work on nonlinear vmas, so if dirty
> > + * pages need to be accounted, emulate with linear vmas.
> > + */
> > + if (mapping_cap_account_dirty(mapping)) {
>
> Perhaps this should read:
>
> if (vma_wants_writenotify(vma)) {
>
I looked at that, but IIRC vma_wants_writenotify() doesn't work after
mmap(), because of the updated protection bits.
> That way we would even allow read only non-linear mappings of 'real'
> filesystem files.
Well, we could do that, but is it really worth the hassle? The real
question is whether anyone would want to use non-linear
shared-read-only mappings or not.
Thanks,
Miklos
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2007-04-05 9:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-05 9:29 [patch 1/2] split mmap Miklos Szeredi
2007-04-05 9:30 ` [patch 2/2] only allow nonlinear vmas for ram backed filesystems Miklos Szeredi, Miklos Szeredi
2007-04-05 9:36 ` Peter Zijlstra
2007-04-05 9:39 ` Miklos Szeredi [this message]
2007-04-05 9:50 ` Peter Zijlstra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1HZORc-0000UZ-00@dorka.pomaz.szeredi.hu \
--to=miklos@szeredi.hu \
--cc=a.p.zijlstra@chello.nl \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox