diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-03-09 15:37:00 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-03-27 12:32:24 -0400 |
commit | fb1458f4578c8dc78dc124de2a58950a6d4e3492 (patch) | |
tree | 3048ad472689aedd7837832558133be425785be7 /fs | |
parent | 84a80f62f71beac20a426709c04b49f2bd352291 (diff) |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfs/pnfs_dev.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/nfs/pnfs_dev.c b/fs/nfs/pnfs_dev.c index bf23ac97d57d..7e07f4ba4822 100644 --- a/fs/nfs/pnfs_dev.c +++ b/fs/nfs/pnfs_dev.c | |||
@@ -238,8 +238,7 @@ nfs4_delete_deviceid(const struct pnfs_layoutdriver_type *ld, | |||
238 | spin_unlock(&nfs4_deviceid_lock); | 238 | spin_unlock(&nfs4_deviceid_lock); |
239 | 239 | ||
240 | /* balance the initial ref set in pnfs_insert_deviceid */ | 240 | /* balance the initial ref set in pnfs_insert_deviceid */ |
241 | if (atomic_dec_and_test(&d->ref)) | 241 | nfs4_put_deviceid_node(d); |
242 | d->ld->free_deviceid_node(d); | ||
243 | } | 242 | } |
244 | EXPORT_SYMBOL_GPL(nfs4_delete_deviceid); | 243 | EXPORT_SYMBOL_GPL(nfs4_delete_deviceid); |
245 | 244 | ||
@@ -323,8 +322,7 @@ _deviceid_purge_client(const struct nfs_client *clp, long hash) | |||
323 | while (!hlist_empty(&tmp)) { | 322 | while (!hlist_empty(&tmp)) { |
324 | d = hlist_entry(tmp.first, struct nfs4_deviceid_node, tmpnode); | 323 | d = hlist_entry(tmp.first, struct nfs4_deviceid_node, tmpnode); |
325 | hlist_del(&d->tmpnode); | 324 | hlist_del(&d->tmpnode); |
326 | if (atomic_dec_and_test(&d->ref)) | 325 | nfs4_put_deviceid_node(d); |
327 | d->ld->free_deviceid_node(d); | ||
328 | } | 326 | } |
329 | } | 327 | } |
330 | 328 | ||