Thread (161 messages) 161 messages, 7 authors, 2013-07-25

Re: [PATCH -v2 -mm] memcg: do not trigger OOM from add_to_page_cache_locked

From: Michal Hocko <hidden>
Date: 2012-11-28 16:48:28
Also in: cgroups, lkml
Subsystem: control group - memory resource controller (memcg), memory management, page cache, the rest, tmpfs (shmem filesystem) · Maintainers: Johannes Weiner, Michal Hocko, Roman Gushchin, Shakeel Butt, Andrew Morton, Matthew Wilcox, Jan Kara, Linus Torvalds, Hugh Dickins

On Wed 28-11-12 17:46:40, Michal Hocko wrote:
On Wed 28-11-12 11:37:36, Johannes Weiner wrote:
quoted
On Wed, Nov 28, 2012 at 05:04:47PM +0100, Michal Hocko wrote:
quoted
diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h
index 095d2b4..5abe441 100644
--- a/include/linux/memcontrol.h
+++ b/include/linux/memcontrol.h
@@ -57,13 +57,14 @@ extern int mem_cgroup_newpage_charge(struct page *page, struct mm_struct *mm,
 				gfp_t gfp_mask);
 /* for swap handling */
 extern int mem_cgroup_try_charge_swapin(struct mm_struct *mm,
-		struct page *page, gfp_t mask, struct mem_cgroup **memcgp);
+		struct page *page, gfp_t mask, struct mem_cgroup **memcgp,
+		bool oom);
Ok, now I feel almost bad for asking, but why the public interface,
too?
Would it work out if I tell it was to double check that your review
quality is not decreased after that many revisions? :P

Incremental update and the full patch in the reply
---
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help