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>