From: Alex Zhuravlev Date: Mon, 5 Feb 2018 10:03:17 +0000 (+0300) Subject: LU-10603 ptlrpc: export req_buffers_max via procfs X-Git-Tag: 2.10.59~96 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=3542f9780bf413849010143a5c72701620390120;p=fs%2Flustre-release.git LU-10603 ptlrpc: export req_buffers_max via procfs after LU-9372 gcc7 complains: lustre/ptlrpc/lproc_ptlrpc.c:382:16: error: ‘ptlrpc_lprocfs_req_buffers_max_fops’ defined but not used [-Werror=unused-const-variable=] LPROC_SEQ_FOPS(ptlrpc_lprocfs_req_buffers_max); ^ Change-Id: Ie4806b79d104c7ea9aa34b6a8a280587fccef689 Signed-off-by: Alex Zhuravlev Reviewed-on: https://review.whamcloud.com/31162 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Faccini Bruno Reviewed-by: James Simmons Reviewed-by: Oleg Drokin --- diff --git a/lustre/ptlrpc/lproc_ptlrpc.c b/lustre/ptlrpc/lproc_ptlrpc.c index 0221c5e..1c3aab7 100644 --- a/lustre/ptlrpc/lproc_ptlrpc.c +++ b/lustre/ptlrpc/lproc_ptlrpc.c @@ -1196,6 +1196,9 @@ void ptlrpc_lprocfs_register_service(struct proc_dir_entry *entry, { .name = "nrs_policies", .fops = &ptlrpc_lprocfs_nrs_fops, .data = svc }, + { .name = "req_buffers_max", + .fops = &ptlrpc_lprocfs_req_buffers_max_fops, + .data = svc }, { NULL } }; static struct file_operations req_history_fops = {