Thread (8 messages) 8 messages, 6 authors, 2005-01-07

Re: [RFC] per thread page reservation patch

From: Andrew Morton <hidden>
Date: 2005-01-07 18:49:00
Also in: lkml

Vladimir Saveliev [off-list ref] wrote:
+int perthread_pages_reserve(int nrpages, int gfp)
 +{
 +	int i;
 +	struct list_head  accumulator;
 +	struct list_head *per_thread;
 +
 +	per_thread = get_per_thread_pages();
 +	INIT_LIST_HEAD(&accumulator);
 +	list_splice_init(per_thread, &accumulator);
 +	for (i = 0; i < nrpages; ++i) {
This will end up reserving more pages than were asked for, if
current->private_pages_count is non-zero.  Deliberate?
--
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:"aart@kvack.org"> aart@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help