linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* re: mm: page_alloc: calculate classzone_idx once from the zonelist ref
@ 2014-05-20 11:17 Dan Carpenter
  2014-05-20 12:43 ` [PATCH] mm: page_alloc: Calculate " Mel Gorman
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Carpenter @ 2014-05-20 11:17 UTC (permalink / raw)
  To: mgorman; +Cc: linux-mm

Hello Mel Gorman,

The patch a486e00b8283: "mm: page_alloc: calculate classzone_idx once
from the zonelist ref" from May 17, 2014, leads to the following
static checker warning:

	mm/page_alloc.c:2543 __alloc_pages_slowpath()
	warn: we tested 'nodemask' before and it was 'false'

mm/page_alloc.c
  2537           * Find the true preferred zone if the allocation is unconstrained by
  2538           * cpusets.
  2539           */
  2540          if (!(alloc_flags & ALLOC_CPUSET) && !nodemask) {
                                                     ^^^^^^^^^
Patch introduces this test.

  2541                  struct zoneref *preferred_zoneref;
  2542                  preferred_zoneref = first_zones_zonelist(zonelist, high_zoneidx,
  2543                                  nodemask ? : &cpuset_current_mems_allowed,
                                        ^^^^^^^^
Patch introduces this test as well.

  2544                                  &preferred_zone);
  2545                  classzone_idx = zonelist_zone_idx(preferred_zoneref);
  2546          }

regards,
dan carpenter

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-05-21  0:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-20 11:17 mm: page_alloc: calculate classzone_idx once from the zonelist ref Dan Carpenter
2014-05-20 12:43 ` [PATCH] mm: page_alloc: Calculate " Mel Gorman
2014-05-21  0:06   ` David Rientjes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).