···270270/* Try using get_net_track() instead */271271static inline struct net *get_net(struct net *net)272272{273273- refcount_inc(&net->ns.count);273273+ ns_ref_inc(net);274274 return net;275275}276276···281281 * exists. If the reference count is zero this282282 * function fails and returns NULL.283283 */284284- if (!refcount_inc_not_zero(&net->ns.count))284284+ if (!ns_ref_get(net))285285 net = NULL;286286 return net;287287}···289289/* Try using put_net_track() instead */290290static inline void put_net(struct net *net)291291{292292- if (refcount_dec_and_test(&net->ns.count))292292+ if (ns_ref_put(net))293293 __put_net(net);294294}295295···301301302302static inline int check_net(const struct net *net)303303{304304- return refcount_read(&net->ns.count) != 0;304304+ return ns_ref_read(net) != 0;305305}306306307307void net_drop_ns(void *);