Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+2 -4
+2 -4
fs/nfs/pnfs_dev.c
··· 238 238 spin_unlock(&nfs4_deviceid_lock); 239 239 240 240 /* balance the initial ref set in pnfs_insert_deviceid */ 241 - if (atomic_dec_and_test(&d->ref)) 242 - d->ld->free_deviceid_node(d); 241 + nfs4_put_deviceid_node(d); 243 242 } 244 243 EXPORT_SYMBOL_GPL(nfs4_delete_deviceid); 245 244 ··· 322 323 while (!hlist_empty(&tmp)) { 323 324 d = hlist_entry(tmp.first, struct nfs4_deviceid_node, tmpnode); 324 325 hlist_del(&d->tmpnode); 325 - if (atomic_dec_and_test(&d->ref)) 326 - d->ld->free_deviceid_node(d); 326 + nfs4_put_deviceid_node(d); 327 327 } 328 328 } 329 329