Whamcloud - gitweb
LU-13783 procfs: fix improper prop_ops fields
authorJames Simmons <jsimmons@infradead.org>
Thu, 20 Jan 2022 01:47:11 +0000 (17:47 -0800)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 21 Jan 2022 23:24:54 +0000 (23:24 +0000)
commit266a66d35b416e98d0b754259209d0441fac4b04
tree45b28b829793694f78b0e6016d6f53e1c4919230
parenta7076fe7a9a67cf3a483a62d9c4dcdcbc0598a26
LU-13783 procfs: fix improper prop_ops fields

The lod pool and nodemap proc_ops missed renaming the fields to
start with .proc_*. On newer distros like Ubuntu 20.04 HWE you
get the following compile error:

lustre-release/lustre/ptlrpc/nodemap_lproc.c:686:3: error: ‘const struct proc_ops’ has no member named ‘open’
  686 |  .open   = nodemap_ranges_open,

Lustre-change: https://review.whamcloud.com/43880
Lustre-commit: d106dfc1458702865118e73bfcdfc2ec2676a7d6

Test-Parameters: trivial
Fixes: 13cd0f9f667 ("LU-13344 libcfs: Abstract proc_fs with proc_ops")
Signed-off-by: James Simmons <jsimmons@infradead.org>
Change-Id: I5fff7519a801f585690d468255f7ca6c73adcc90
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-on: https://review.whamcloud.com/46219
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/lod/lod_pool.c
lustre/ptlrpc/nodemap_lproc.c