commit | 447cef3f4af7a029002d52d2b994750e4955ace0 | [log] [tgz] |
---|---|---|
author | Mel Gorman <mgorman@techsingularity.net> | Mon Jan 11 14:16:03 2016 +0000 |
committer | Mel Gorman <mgorman@techsingularity.net> | Wed Jan 27 08:54:45 2016 +0000 |
tree | c6d289b99ab14fc0fb41a38eb26846a4c0c2b3fc | |
parent | 625fab12b407ee064c3f9d10b304e5aba87ad1ce [diff] |
mm: page_alloc: Cache the last node whose dirty limit is reached If a page is about to be dirtied then the page allocator attempts to limit the total number of dirty pages that exists in any given zone. The call to node_dirty_ok is expensive so this patch records if the last pgdat examined hit the dirty limits. In some cases, this reduces the number of calls to node_dirty_ok(). Signed-off-by: Mel Gorman <mgorman@techsingularity.net>