projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f943cbe
)
Move limit definitions outside CONFIG_INET
author
Glauber Costa
<
[email protected]
>
Wed, 14 Dec 2011 23:34:31 +0000
(23:34 +0000)
committer
David S. Miller
<
[email protected]
>
Thu, 15 Dec 2011 16:59:44 +0000
(11:59 -0500)
They need to be available for other protocols as well, since
they are used in sock.c openly
Signed-off-by: Glauber Costa <
[email protected]
>
CC: Hiroyouki Kamezawa <
[email protected]
>
CC: David S. Miller <
[email protected]
>
CC: Eric Dumazet <
[email protected]
>
CC: Stephen Rothwell <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
include/linux/memcontrol.h
patch
|
blob
|
history
diff --git
a/include/linux/memcontrol.h
b/include/linux/memcontrol.h
index 1513994ce207dc0edbc696aed7e86ded9b552b56..9b296ea41bb85a5543c915dad41748c59fdd1734 100644
(file)
--- a/
include/linux/memcontrol.h
+++ b/
include/linux/memcontrol.h
@@
-384,13
+384,13
@@
mem_cgroup_print_bad_page(struct page *page)
}
#endif
-#ifdef CONFIG_INET
enum {
UNDER_LIMIT,
SOFT_LIMIT,
OVER_LIMIT,
};
+#ifdef CONFIG_INET
struct sock;
#ifdef CONFIG_CGROUP_MEM_RES_CTLR_KMEM
void sock_update_memcg(struct sock *sk);