diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-07-04 08:19:21 -0700 | 
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-07-04 08:19:21 -0700 | 
| commit | c318a821b9828ef3be97d5d896d146e7daa43c86 (patch) | |
| tree | 7ed40911ffebcbabf87ec4be692f6fb154053687 /mm/memcontrol.c | |
| parent | 322832f2f19e04c866a0ce4bdac8cff8e695f2b3 (diff) | |
| parent | a99cde438de0c4c0cecc1d1af1a55a75b10bfdef (diff) | |
Merge 4.7-rc6 into usb-next
We want the USB fixes in here as well.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm/memcontrol.c')
| -rw-r--r-- | mm/memcontrol.c | 7 | 
1 files changed, 4 insertions, 3 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 75e74408cc8f..ac8664db3823 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -4203,7 +4203,7 @@ mem_cgroup_css_alloc(struct cgroup_subsys_state *parent_css)  	return &memcg->css;  fail:  	mem_cgroup_free(memcg); -	return NULL; +	return ERR_PTR(-ENOMEM);  }  static int @@ -5544,6 +5544,7 @@ void mem_cgroup_migrate(struct page *oldpage, struct page *newpage)  	struct mem_cgroup *memcg;  	unsigned int nr_pages;  	bool compound; +	unsigned long flags;  	VM_BUG_ON_PAGE(!PageLocked(oldpage), oldpage);  	VM_BUG_ON_PAGE(!PageLocked(newpage), newpage); @@ -5574,10 +5575,10 @@ void mem_cgroup_migrate(struct page *oldpage, struct page *newpage)  	commit_charge(newpage, memcg, false); -	local_irq_disable(); +	local_irq_save(flags);  	mem_cgroup_charge_statistics(memcg, newpage, compound, nr_pages);  	memcg_check_events(memcg, newpage); -	local_irq_enable(); +	local_irq_restore(flags);  }  DEFINE_STATIC_KEY_FALSE(memcg_sockets_enabled_key);  | 
