File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11---
22refs/heads/rpi-3.6.y: 10bc58289a7ebf6b1ab724636e0a16116278e339
33refs/heads/master: 645fd9b0c0b3c1f79f71f92dac79bd2f87010444
4- refs/heads/rpi-3.9.y: 7039e1dbec6eeaa8ecab43a82d6589eeced995c3
4+ refs/heads/rpi-3.9.y: 149c33e1c98f83050870514f380902dc6d617bd5
Original file line number Diff line number Diff line change @@ -1489,18 +1489,21 @@ int migrate_misplaced_page(struct page *page, int node)
14891489 }
14901490 isolated = 1 ;
14911491
1492- /*
1493- * Page is isolated which takes a reference count so now the
1494- * callers reference can be safely dropped without the page
1495- * disappearing underneath us during migration
1496- */
1497- put_page (page );
1498-
14991492 page_lru = page_is_file_cache (page );
15001493 inc_zone_page_state (page , NR_ISOLATED_ANON + page_lru );
15011494 list_add (& page -> lru , & migratepages );
15021495 }
15031496
1497+ /*
1498+ * Page is either isolated or there is not enough space on the target
1499+ * node. If isolated, then it has taken a reference count and the
1500+ * callers reference can be safely dropped without the page
1501+ * disappearing underneath us during migration. Otherwise the page is
1502+ * not to be migrated but the callers reference should still be
1503+ * dropped so it does not leak.
1504+ */
1505+ put_page (page );
1506+
15041507 if (isolated ) {
15051508 int nr_remaining ;
15061509
You can’t perform that action at this time.
0 commit comments