From: Andrew Morton <andrewm@uow.edu.au>
To: "linux-mm@kvack.org" <linux-mm@kvack.org>
Subject: vmtruncate question
Date: Wed, 12 Jul 2000 01:53:44 +0000 [thread overview]
Message-ID: <396BCFA8.C033D94A@uow.edu.au> (raw)
The flushes which surround the second call to zap_page_range()
would appear to be flushing more memory than is to be
zapped. Is this correct, or should it be:
--- memory.c.orig Wed Jul 12 11:49:08 2000
+++ memory.c Wed Jul 12 11:49:31 2000
@@ -980,9 +980,9 @@
partial_clear(mpnt, start);
start = (start + ~PAGE_MASK) & PAGE_MASK;
}
- flush_cache_range(mm, start, end);
+ flush_cache_range(mm, start, start + len);
zap_page_range(mm, start, len);
- flush_tlb_range(mm, start, end);
+ flush_tlb_range(mm, start, start + len);
} while ((mpnt = mpnt->vm_next_share) != NULL);
out_unlock:
spin_unlock(&mapping->i_shared_lock);
--
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.eu.org/Linux-MM/
next reply other threads:[~2000-07-12 1:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-07-12 1:53 Andrew Morton [this message]
2000-07-14 10:18 ` vmtruncate question Stephen C. Tweedie
2000-07-14 12:57 ` Andrew Morton
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=396BCFA8.C033D94A@uow.edu.au \
--to=andrewm@uow.edu.au \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.