> From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>> > Current memory cgroup's code tends to assume page_size == PAGE_SIZE> and arrangement for THP is not enough yet.> > This is one of fixes for supporing THP. This adds> mem_cgroup_check_margin() and checks whether there are required amount of> free resource after memory reclaim. By this, THP page allocation> can know whether it really succeeded or not and avoid infinite-loop> and hangup.> > Total fixes for do_charge()/reclaim memory will follow this patch.> > Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>