Move limit definitions outside CONFIG_INET

They need to be available for other protocols as well, since
they are used in sock.c openly

Signed-off-by: Glauber Costa <glommer@parallels.com>
CC: Hiroyouki Kamezawa <kamezawa.hiroyu@jp.fujitsu.com>
CC: David S. Miller <davem@davemloft.net>
CC: Eric Dumazet <eric.dumazet@gmail.com>
CC: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Glauber Costa 2011-12-14 23:34:31 +00:00 коммит произвёл David S. Miller
Родитель f943cbe6fb
Коммит 888bdaa9b2
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -384,13 +384,13 @@ mem_cgroup_print_bad_page(struct page *page)
} }
#endif #endif
#ifdef CONFIG_INET
enum { enum {
UNDER_LIMIT, UNDER_LIMIT,
SOFT_LIMIT, SOFT_LIMIT,
OVER_LIMIT, OVER_LIMIT,
}; };
#ifdef CONFIG_INET
struct sock; struct sock;
#ifdef CONFIG_CGROUP_MEM_RES_CTLR_KMEM #ifdef CONFIG_CGROUP_MEM_RES_CTLR_KMEM
void sock_update_memcg(struct sock *sk); void sock_update_memcg(struct sock *sk);