Whamcloud - gitweb
LU-9855 lustre: rename obd_device variables to obd 69/36969/11
authorMr NeilBrown <neilb@suse.de>
Tue, 10 Dec 2019 00:03:08 +0000 (11:03 +1100)
committerOleg Drokin <green@whamcloud.com>
Wed, 11 Mar 2020 02:10:28 +0000 (02:10 +0000)
commitcd5d04b3722e2edca02671ab5b8729070de20275
treee9c4caeeef3b0be71d0b4a642f2bc74ac7f88fb3
parent67fafd215587141c92b358f8800c05ef1f8088a4
LU-9855 lustre: rename obd_device variables to obd

Most variables of type 'struct obd_device *' are named 'obd' -
655 of them.

81 are named 'dev'
29 are named 'obddev'

The remainder (< 100) have various names specific to the used (e.g
disk_obd, src, tgt etc), none used more than 11 times (mgc).

As 'obd', 'dev', and 'obddev' are all simple generic names, it would
be nice to be consistent and only use one of these.

This patch changes all 'dev' and 'obddev' variables to 'obd'.

Also change some "sprintf" to "scnprintf .. PAGE_SIZE" to avoid
warnings.

Test-Parameters: trivial
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I640c4f121d7db6aec1fef848a84463d46f68f262
Reviewed-on: https://review.whamcloud.com/36969
Tested-by: Maloo <maloo@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
21 files changed:
lustre/include/lprocfs_status.h
lustre/include/lustre_net.h
lustre/include/lustre_osc.h
lustre/include/lustre_sec.h
lustre/include/obd.h
lustre/include/obd_class.h
lustre/ldlm/ldlm_lib.c
lustre/lmv/lmv_obd.c
lustre/lmv/lproc_lmv.c
lustre/lod/lproc_lod.c
lustre/lov/lov_obd.c
lustre/lov/lproc_lov.c
lustre/mdc/lproc_mdc.c
lustre/mdc/mdc_locks.c
lustre/obdclass/genops.c
lustre/obdclass/lprocfs_status.c
lustre/obdecho/echo.c
lustre/obdecho/echo_client.c
lustre/osc/lproc_osc.c
lustre/ptlrpc/lproc_ptlrpc.c
lustre/ptlrpc/sec_lproc.c