Whamcloud - gitweb
LU-8066 obd: fix LPROC_SEQ_FOPS macros for debugfs 50/26650/5
authorJames Simmons <uja.ornl@yahoo.com>
Fri, 4 Aug 2017 21:12:24 +0000 (17:12 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 13 Aug 2017 17:18:12 +0000 (17:18 +0000)
commitdc442398aba7d009b9ca05e34c89a90c9ea99048
tree6bf7c2d8ecd6a8ad171a0139d98fe84db02b1d71
parent6712478e79588e73e28c7ccac3afc7ac2368a4f3
LU-8066 obd: fix LPROC_SEQ_FOPS macros for debugfs

While porting to debugfs I discovered a bug in that
for the debugfs case no data was being passed into
single_open(). This would cause a crash when reading
debugfs files since the seq_file private field was
NULL. Second change is the rename of the *WO_TYPE*
macro to LPROC_SEQ_FOPS_WR_ONLY to match upstream.

Change-Id: I9b6baebecaeb82795d7055148533862489473a1d
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/26650
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Emoly Liu <emoly.liu@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
14 files changed:
lustre/fld/lproc_fld.c
lustre/include/lprocfs_status.h
lustre/ldlm/ldlm_resource.c
lustre/mdc/lproc_mdc.c
lustre/mdt/mdt_lproc.c
lustre/mgc/lproc_mgc.c
lustre/mgs/lproc_mgs.c
lustre/ofd/lproc_ofd.c
lustre/osc/lproc_osc.c
lustre/osd-ldiskfs/osd_lproc.c
lustre/osd-zfs/osd_lproc.c
lustre/osp/lproc_osp.c
lustre/ptlrpc/nodemap_lproc.c
lustre/quota/qsd_lib.c