NFSv4.1: Cleanup - don't opencode nfs4_put_deviceid_node()

There really is no reason to do so.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
This commit is contained in:
Trond Myklebust 2015-03-09 15:37:00 -04:00
parent 84a80f62f7
commit fb1458f457
1 changed files with 2 additions and 4 deletions

View File

@ -238,8 +238,7 @@ nfs4_delete_deviceid(const struct pnfs_layoutdriver_type *ld,
spin_unlock(&nfs4_deviceid_lock); spin_unlock(&nfs4_deviceid_lock);
/* balance the initial ref set in pnfs_insert_deviceid */ /* balance the initial ref set in pnfs_insert_deviceid */
if (atomic_dec_and_test(&d->ref)) nfs4_put_deviceid_node(d);
d->ld->free_deviceid_node(d);
} }
EXPORT_SYMBOL_GPL(nfs4_delete_deviceid); EXPORT_SYMBOL_GPL(nfs4_delete_deviceid);
@ -323,8 +322,7 @@ _deviceid_purge_client(const struct nfs_client *clp, long hash)
while (!hlist_empty(&tmp)) { while (!hlist_empty(&tmp)) {
d = hlist_entry(tmp.first, struct nfs4_deviceid_node, tmpnode); d = hlist_entry(tmp.first, struct nfs4_deviceid_node, tmpnode);
hlist_del(&d->tmpnode); hlist_del(&d->tmpnode);
if (atomic_dec_and_test(&d->ref)) nfs4_put_deviceid_node(d);
d->ld->free_deviceid_node(d);
} }
} }