Whamcloud - gitweb
LU-8837 lustre: remove target declarations from obd.h 52/41952/11
authorMr NeilBrown <neilb@suse.de>
Wed, 23 Nov 2022 21:35:25 +0000 (16:35 -0500)
committerOleg Drokin <green@whamcloud.com>
Tue, 6 Dec 2022 02:43:00 +0000 (02:43 +0000)
commit888962496078198250d8ad63e4ac928c45f31473
tree667cbb525bf481eb0776dfe142339b033c14ac88
parenta5d5bfbf9b6141954ec56e196aceaa233ef0228b
LU-8837 lustre: remove target declarations from obd.h

lu_target.h and obd_target.h are only needed in obd.h
for some structs in obd_device.u.  We don't really need to mention
these structs in the union as they are all quite small.

So we can define accessor function that cast a pointer to the union
into the required type, and then we can completely remove these
includes from obd.h

Test-Parameters: trivial
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I9b314b0bfc1baae03ccb8eadf134964ea308f638
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/41952
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
30 files changed:
lustre/fld/fld_handler.c
lustre/include/lu_target.h
lustre/include/lustre_quota.h
lustre/include/obd.h
lustre/include/obd_class.h
lustre/include/obd_target.h
lustre/ldlm/ldlm_lib.c
lustre/lfsck/lfsck_bookmark.c
lustre/lfsck/lfsck_lib.c
lustre/lfsck/lfsck_namespace.c
lustre/mdd/mdd_device.c
lustre/mdd/mdd_object.c
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_lproc.c
lustre/mgs/mgs_fs.c
lustre/mgs/mgs_handler.c
lustre/obdclass/lprocfs_jobstats.c
lustre/obdclass/lprocfs_status_server.c
lustre/obdecho/echo.c
lustre/ofd/lproc_ofd.c
lustre/ofd/ofd_dev.c
lustre/ofd/ofd_internal.h
lustre/ost/ost_handler.c
lustre/ptlrpc/nodemap_storage.c
lustre/quota/lquota_internal.h
lustre/target/tgt_fmd.c
lustre/target/tgt_grant.c
lustre/target/tgt_lastrcvd.c
lustre/target/tgt_main.c
lustre/target/tgt_mount.c