From: Rakesh Tiwari <rakeshtiwari@attbi.com>
To: linux-kernel <linux-kernel@vger.kernel.org>
Subject: 2.2.19(xx) file unmapping on abort
Date: Fri, 22 Mar 2002 14:02:45 -0600 [thread overview]
Message-ID: <3C9B8DE5.7FF84BF3@attbi.com> (raw)
Relevant code -
../src/linux/mm/filemap.c
static void filemap_unmap(struct vm_area_struct *vma, unsigned long
start, size_t len)
{
filemap_sync(vma, start, len, MS_ASYNC);
}
Question -
Does this imply that every time a process terminates abonormally, all
the dirty pages related to that mapping are flushed to the disk, even if
that was not intended ? Why can not it be simply this ? -
static void filemap_unmap(struct vm_area_struct *vma, unsigned long
start, size_t len)
{
filemap_sync(vma, start, len, MS_INVALIDATE);
}
I call msync() at various points in the program where data in the pages
is known to be in good condition. At the abnormal program termination, I
am not really sure if data in pages is valid or not.....
Thank you.
Rakesh :-)
next reply other threads:[~2002-03-22 20:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-22 20:02 Rakesh Tiwari [this message]
2002-03-22 20:13 ` Alexander Viro
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=3C9B8DE5.7FF84BF3@attbi.com \
--to=rakeshtiwari@attbi.com \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®