From 3542f9780bf413849010143a5c72701620390120 Mon Sep 17 00:00:00 2001 From: Alex Zhuravlev Date: Mon, 5 Feb 2018 13:03:17 +0300 Subject: [PATCH] LU-10603 ptlrpc: export req_buffers_max via procfs MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- lustre/ptlrpc/lproc_ptlrpc.c | 3 +++ 1 file changed, 3 insertions(+) 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 = { -- 1.8.3.1