Skip to content

Commit

Permalink
NFSv4.1: Cleanup - don't opencode nfs4_put_deviceid_node()
Browse files Browse the repository at this point in the history
There really is no reason to do so.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
  • Loading branch information
Trond Myklebust committed Mar 27, 2015
1 parent 84a80f6 commit fb1458f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions fs/nfs/pnfs_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,7 @@ nfs4_delete_deviceid(const struct pnfs_layoutdriver_type *ld,
spin_unlock(&nfs4_deviceid_lock);

/* balance the initial ref set in pnfs_insert_deviceid */
if (atomic_dec_and_test(&d->ref))
d->ld->free_deviceid_node(d);
nfs4_put_deviceid_node(d);
}
EXPORT_SYMBOL_GPL(nfs4_delete_deviceid);

Expand Down Expand Up @@ -323,8 +322,7 @@ _deviceid_purge_client(const struct nfs_client *clp, long hash)
while (!hlist_empty(&tmp)) {
d = hlist_entry(tmp.first, struct nfs4_deviceid_node, tmpnode);
hlist_del(&d->tmpnode);
if (atomic_dec_and_test(&d->ref))
d->ld->free_deviceid_node(d);
nfs4_put_deviceid_node(d);
}
}

Expand Down

0 comments on commit fb1458f

Please sign in to comment.