Hi Andrew, Here's my attempt to cleanup of get_user_pages() code in order to make it more maintainable. v2: - rebased to current Linus' tree (1b17844b29ae); - add missing includes; - s/BUILD_BUG/BUG/; 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 | 666 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ mm/internal.h | 5 + mm/memory.c | 645 -------------------------------------------------------- 4 files changed, 672 insertions(+), 646 deletions(-) create mode 100644 mm/gup.c -- 1.9.2 -- 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>