Re: Correct way to release get_user_pages()?

From: Timur Tabi
Date: Mon Jan 31 2005 - 10:54:25 EST


Andrew Morton wrote:

no... You should only dirty the page if it was modified, and then use
set_page_dirty() or set_page_dirty_lock().

If the page was modified, then shouldn't it already be marked dirty?

Also, should I always use set_page_dirty_lock() if I haven't already locked the page?


--
Timur Tabi
Staff Software Engineer
timur.tabi@xxxxxxxxxxx
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/