Whamcloud - gitweb
LU-13344 libcfs: Abstract proc_fs with proc_ops
authorShaun Tancheff <shaun.tancheff@hpe.com>
Tue, 11 May 2021 04:22:12 +0000 (21:22 -0700)
committerLi Xi <lixi@ddn.com>
Tue, 18 May 2021 01:46:51 +0000 (01:46 +0000)
commit5ad1dd39e906298427f41e4b816b857215a3e9bb
tree9fed696b67347d02b06914e0291629be44f6c531
parent81a7864685f045052c89af24f3a62f34e892377a
LU-13344 libcfs: Abstract proc_fs with proc_ops

Linux 5.6 introduces proc_ops with v5.5-8862-gd56c0d45f0e2
proc: decouple proc from VFS with "struct proc_ops"

Map proc_ops and it's members to file_operations and
the appropriate members for older kernels.

One remaining 'PROC_OWNER()' macro is left to deal with
proc_ops being unable to sensibly map the owner member.

Lustre-change: https://review.whamcloud.com/37873
Lustre-commit: 13cd0f9f667c6e138a8cb235d4920f8b749cb154

Test-Parameters: trivial
HPE-bug-id: LUS-8589
Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: I3d8940a91b331c4f6bb31a9432194cc082c9cecd
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/43642
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Li Xi <lixi@ddn.com>
16 files changed:
.gitignore
libcfs/autoconf/lustre-libcfs.m4
libcfs/include/libcfs/linux/linux-fs.h
lustre/include/lprocfs_status.h
lustre/lmv/lproc_lmv.c
lustre/lod/lod_pool.c
lustre/lod/lproc_lod.c
lustre/lov/lov_pool.c
lustre/lov/lproc_lov.c
lustre/mdt/mdt_fs.c
lustre/mgs/lproc_mgs.c
lustre/obdclass/lprocfs_jobstats.c
lustre/obdclass/lprocfs_status.c
lustre/ptlrpc/nodemap_lproc.c
lustre/quota/lproc_quota.c
lustre/quota/lquota_internal.h