Whamcloud - gitweb
LU-137 obdclass: add dt_object_put() and use it 92/23092/8
authorAndreas Dilger <andreas.dilger@intel.com>
Tue, 11 Oct 2016 21:18:45 +0000 (15:18 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 26 Mar 2017 06:49:30 +0000 (06:49 +0000)
commit5963af745b3aa14410d5ceb66f8a7b7d6aaf576a
tree1c3b4c5cabc3a6fc39ca12e11caea1aef62de845
parentd73cf7722417c78ad07d88189421cfc8ef3fb8a7
LU-137 obdclass: add dt_object_put() and use it

Introduce dt_object_put() and dt_object_put_nocache() and use them
instead of lu_object_put() and lu_object_put_nocache(), to balance
the use of dt_object_locate() to make a symmetrical interface.

Move the existing ofd_object_put() and osd_object_put() wrappers
into common header functions to use instead of dt_object_put()
or lu_object_put() calls in the respective code, when possible.

Functionally, this patch is a no-op.

Test-Parameters: trivial
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I7ef657438441de4a91ee08edb4bc097ac97b7418
Reviewed-on: https://review.whamcloud.com/23092
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
45 files changed:
lustre/fid/fid_store.c
lustre/fld/fld_index.c
lustre/include/dt_object.h
lustre/lfsck/lfsck_internal.h
lustre/lfsck/lfsck_layout.c
lustre/lod/lod_dev.c
lustre/lod/lod_lov.c
lustre/lod/lod_object.c
lustre/lod/lod_qos.c
lustre/mdd/mdd_device.c
lustre/mdd/mdd_orphans.c
lustre/mgc/mgc_request.c
lustre/mgs/mgs_fs.c
lustre/mgs/mgs_nids.c
lustre/obdclass/dt_object.c
lustre/obdclass/llog_osd.c
lustre/obdclass/llog_test.c
lustre/obdclass/local_storage.c
lustre/obdecho/echo_client.c
lustre/ofd/ofd_fs.c
lustre/ofd/ofd_internal.h
lustre/ofd/ofd_io.c
lustre/ofd/ofd_objects.c
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-ldiskfs/osd_internal.h
lustre/osd-ldiskfs/osd_io.c
lustre/osd-ldiskfs/osd_quota.c
lustre/osd-zfs/osd_index.c
lustre/osd-zfs/osd_internal.h
lustre/osd-zfs/osd_quota.c
lustre/osp/osp_dev.c
lustre/osp/osp_trans.c
lustre/ptlrpc/nodemap_storage.c
lustre/quota/lquota_disk.c
lustre/quota/lquota_lib.c
lustre/quota/qmt_dev.c
lustre/quota/qmt_handler.c
lustre/quota/qmt_lock.c
lustre/quota/qmt_pool.c
lustre/quota/qsd_lib.c
lustre/target/out_handler.c
lustre/target/tgt_handler.c
lustre/target/tgt_main.c
lustre/target/update_recovery.c
lustre/target/update_trans.c