|
@@ -51,4 +51,10 @@ void inet_frag_destroy(struct inet_frag_queue *q,
|
|
|
struct inet_frags *f, int *work);
|
|
|
int inet_frag_evictor(struct inet_frags *f);
|
|
|
|
|
|
+static inline void inet_frag_put(struct inet_frag_queue *q, struct inet_frags *f)
|
|
|
+{
|
|
|
+ if (atomic_dec_and_test(&q->refcnt))
|
|
|
+ inet_frag_destroy(q, f, NULL);
|
|
|
+}
|
|
|
+
|
|
|
#endif
|