|
@@ -2613,13 +2613,13 @@ retry:
|
|
if (!(gfp_mask & __GFP_WAIT))
|
|
if (!(gfp_mask & __GFP_WAIT))
|
|
goto nomem;
|
|
goto nomem;
|
|
|
|
|
|
- if (gfp_mask & __GFP_NORETRY)
|
|
|
|
- goto nomem;
|
|
|
|
-
|
|
|
|
nr_reclaimed = mem_cgroup_reclaim(mem_over_limit, gfp_mask, flags);
|
|
nr_reclaimed = mem_cgroup_reclaim(mem_over_limit, gfp_mask, flags);
|
|
|
|
|
|
if (mem_cgroup_margin(mem_over_limit) >= batch)
|
|
if (mem_cgroup_margin(mem_over_limit) >= batch)
|
|
goto retry;
|
|
goto retry;
|
|
|
|
+
|
|
|
|
+ if (gfp_mask & __GFP_NORETRY)
|
|
|
|
+ goto nomem;
|
|
/*
|
|
/*
|
|
* Even though the limit is exceeded at this point, reclaim
|
|
* Even though the limit is exceeded at this point, reclaim
|
|
* may have been able to free some pages. Retry the charge
|
|
* may have been able to free some pages. Retry the charge
|