On Sun, Dec 20, 2015 at 02:17:59PM +0100, Sven Eckelmann wrote:
- batadv_dat_entry_free_ref - decrement the dat_entry refcounter and possibly
- free it
A few of the newly introduced _release() functions have this "and possibly free it" renamed to "and possibly release it", some don't.
- @dat_entry: the entry to free
*/
- @dat_entry: dat_entry to be free'd
static void batadv_dat_entry_free_ref(struct batadv_dat_entry *dat_entry) {
- if (atomic_dec_and_test(&dat_entry->refcount))
kfree_rcu(dat_entry, rcu);
- kref_put(&dat_entry->refcount, batadv_dat_entry_release);
}