Hi, Here's my attempt to cleanup of get_user_pages() code in order to make it more maintainable. Tested on my laptop for few hours. No crashes so far ;) Let me know if it makes sense. Any suggestions are welcome. Kirill A. Shutemov (5): mm: move get_user_pages()-related code to separate file mm: extract in_gate_area() case from __get_user_pages() mm: cleanup follow_page_mask() mm: extract code to fault in a page from __get_user_pages() mm: cleanup __get_user_pages() mm/Makefile | 2 +- mm/gup.c | 638 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ mm/memory.c | 611 --------------------------------------------------------- 3 files changed, 639 insertions(+), 612 deletions(-) create mode 100644 mm/gup.c -- 1.9.1 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>