Whamcloud - gitweb
LU-8066 fid: use LDEBUGFS_SEQ_* macro 72/34372/3
authorJames Simmons <uja.ornl@yahoo.com>
Mon, 4 Mar 2019 16:06:52 +0000 (11:06 -0500)
committerOleg Drokin <green@whamcloud.com>
Fri, 15 Mar 2019 23:46:27 +0000 (23:46 +0000)
Lustre has LPROC_SEQ_* for proc handling and LDEBUGFS_SEQ_* macros
for debugfs handling. While similar using the wrong macro can
break things. To avoid that chance lets move the fid subsystem to
the LDBEUGFS_SEQ_* macro since its already moved to debugfs.

Change-Id: I3936c72f9fb58a38847822dad21c4b6f5e1d7a78
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/34372
Reviewed-by: Olaf Weber <olaf.weber@hpe.com>
Reviewed-by: Ben Evans <bevans@cray.com>
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/fid/lproc_fid.c

index 1df0ac8..0f460f9 100644 (file)
@@ -195,9 +195,9 @@ ldebugfs_server_fid_width_seq_show(struct seq_file *m, void *unused)
        RETURN(0);
 }
 
-LPROC_SEQ_FOPS(ldebugfs_server_fid_space);
-LPROC_SEQ_FOPS(ldebugfs_server_fid_width);
-LPROC_SEQ_FOPS_RO(ldebugfs_server_fid_server);
+LDEBUGFS_SEQ_FOPS(ldebugfs_server_fid_space);
+LDEBUGFS_SEQ_FOPS(ldebugfs_server_fid_width);
+LDEBUGFS_SEQ_FOPS_RO(ldebugfs_server_fid_server);
 
 struct lprocfs_vars seq_server_debugfs_list[] = {
        { .name =       "space",
@@ -603,10 +603,10 @@ ldebugfs_client_fid_server_seq_show(struct seq_file *m, void *unused)
        RETURN(0);
 }
 
-LPROC_SEQ_FOPS(ldebugfs_client_fid_space);
-LPROC_SEQ_FOPS(ldebugfs_client_fid_width);
-LPROC_SEQ_FOPS_RO(ldebugfs_client_fid_server);
-LPROC_SEQ_FOPS_RO(ldebugfs_client_fid_fid);
+LDEBUGFS_SEQ_FOPS(ldebugfs_client_fid_space);
+LDEBUGFS_SEQ_FOPS(ldebugfs_client_fid_width);
+LDEBUGFS_SEQ_FOPS_RO(ldebugfs_client_fid_server);
+LDEBUGFS_SEQ_FOPS_RO(ldebugfs_client_fid_fid);
 
 struct lprocfs_vars seq_client_debugfs_list[] = {
        { .name =       "space",