I think something like this is missing (untested):
out_free_page:
+ if(wait)
+ wait_on_page(found_page);
__free_page(new_page);
-- Manfred- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/