]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: memcontrol: remove explicit OOM parameter in charge path
authorMichal Hocko <mhocko@suse.cz>
Thu, 26 Jun 2014 00:42:37 +0000 (10:42 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 26 Jun 2014 00:42:37 +0000 (10:42 +1000)
commit0d51b7c40e3d887980d4579e42118a5d5ec3731e
treed6b7f3f14bd7e0ee01cc177778b47c119149788b
parent5acd1dcaafd43b09989a7c07d7e1bb09ab75e3c6
mm: memcontrol: remove explicit OOM parameter in charge path

For the page allocator, __GFP_NORETRY implies that no OOM should be
triggered, whereas memcg has an explicit parameter to disable OOM.

The only callsites that want OOM disabled are THP charges and charge
moving.  THP already uses __GFP_NORETRY and charge moving can use it as
well - one full reclaim cycle should be plenty.  Switch it over, then
remove the OOM parameter.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Michal Hocko <mhocko@suse.cz>
Cc: Hugh Dickins <hughd@google.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Vladimir Davydov <vdavydov@parallels.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memcontrol.c