diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-11-23 03:04:05 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-11-23 03:04:05 -0500 |
commit | 92907cbbef8625bb3998d1eb385fc88f23c97a3f (patch) | |
tree | 15626ff9287e37c3cb81c7286d6db5a7fd77c854 /include/net/inet_frag.h | |
parent | 15fbfccfe92c62ae8d1ecc647c44157ed01ac02e (diff) | |
parent | 1ec218373b8ebda821aec00bb156a9c94fad9cd4 (diff) |
Merge tag 'v4.4-rc2' into drm-intel-next-queued
Linux 4.4-rc2
Backmerge to get at
commit 1b0e3a049efe471c399674fd954500ce97438d30
Author: Imre Deak <imre.deak@intel.com>
Date: Thu Nov 5 23:04:11 2015 +0200
drm/i915/skl: disable display side power well support for now
so that we can proplery re-eanble skl power wells in -next.
Conflicts are just adjacent lines changed, except for intel_fbdev.c
where we need to interleave the changs. Nothing nefarious.
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'include/net/inet_frag.h')
-rw-r--r-- | include/net/inet_frag.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/include/net/inet_frag.h b/include/net/inet_frag.h index 53eead2da743..ac42bbb37b2d 100644 --- a/include/net/inet_frag.h +++ b/include/net/inet_frag.h | |||
@@ -108,7 +108,15 @@ struct inet_frags { | |||
108 | int inet_frags_init(struct inet_frags *); | 108 | int inet_frags_init(struct inet_frags *); |
109 | void inet_frags_fini(struct inet_frags *); | 109 | void inet_frags_fini(struct inet_frags *); |
110 | 110 | ||
111 | void inet_frags_init_net(struct netns_frags *nf); | 111 | static inline int inet_frags_init_net(struct netns_frags *nf) |
112 | { | ||
113 | return percpu_counter_init(&nf->mem, 0, GFP_KERNEL); | ||
114 | } | ||
115 | static inline void inet_frags_uninit_net(struct netns_frags *nf) | ||
116 | { | ||
117 | percpu_counter_destroy(&nf->mem); | ||
118 | } | ||
119 | |||
112 | void inet_frags_exit_net(struct netns_frags *nf, struct inet_frags *f); | 120 | void inet_frags_exit_net(struct netns_frags *nf, struct inet_frags *f); |
113 | 121 | ||
114 | void inet_frag_kill(struct inet_frag_queue *q, struct inet_frags *f); | 122 | void inet_frag_kill(struct inet_frag_queue *q, struct inet_frags *f); |
@@ -154,11 +162,6 @@ static inline void add_frag_mem_limit(struct netns_frags *nf, int i) | |||
154 | __percpu_counter_add(&nf->mem, i, frag_percpu_counter_batch); | 162 | __percpu_counter_add(&nf->mem, i, frag_percpu_counter_batch); |
155 | } | 163 | } |
156 | 164 | ||
157 | static inline void init_frag_mem_limit(struct netns_frags *nf) | ||
158 | { | ||
159 | percpu_counter_init(&nf->mem, 0, GFP_KERNEL); | ||
160 | } | ||
161 | |||
162 | static inline unsigned int sum_frag_mem_limit(struct netns_frags *nf) | 165 | static inline unsigned int sum_frag_mem_limit(struct netns_frags *nf) |
163 | { | 166 | { |
164 | unsigned int res; | 167 | unsigned int res; |