Whamcloud - gitweb
LU-9859 libcfs: discard cfs_cap_t, use kernel_cap_t
authorMr. NeilBrown <neilb@suse.de>
Wed, 14 Jul 2021 16:15:26 +0000 (12:15 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 29 Jul 2023 07:52:28 +0000 (07:52 +0000)
commit49ec4b453a6e0cffefdc5d1fa76763cf8c1f0179
tree82b01073c2cebb814391da6358c02a0d6bb17bc2
parentf1a5566a87b404e9eac2cffcd5bbda8c5d7022cf
LU-9859 libcfs: discard cfs_cap_t, use kernel_cap_t

lustre only sends 32bits of capabilities in on-the-wire RPC calls.
It current strips off higher bits and uses a 32bit cfs_cap_t
throughout.
Though there is a small memory cost, it is cleaner to use
kernel_cap_t throughout and only truncate when marshalling
data for RPC calls.

So this patch replaces cfs_cap_t with kernel_cap_t throughout,
and where a cfs_cap_t was previous stored in a __u32, we now
store cap.cap[0] instead.

With this, we can remove include/linux/libcfs/curproc.h

Linux-commit: 18f92a6e3d6bd00941ddfb5837835348f72d39dc

Lustre-change: https://review.whamcloud.com/43171
Lustre-commit: 0a6beb2a50f7a4f953a258b63c2ea1fbfd373092

Change-Id: If7dd7a16c218dfc0d520e189f021ed6bda3b93fd
Signed-off-by: Mr. NeilBrown <neilb@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/51743
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
27 files changed:
libcfs/include/libcfs/Makefile.am
libcfs/include/libcfs/curproc.h [deleted file]
libcfs/include/libcfs/libcfs.h
lustre/include/md_object.h
lustre/include/obd.h
lustre/include/obd_class.h
lustre/llite/dir.c
lustre/llite/llite_lib.c
lustre/llite/namei.c
lustre/lmv/lmv_obd.c
lustre/mdc/mdc_internal.h
lustre/mdc/mdc_lib.c
lustre/mdc/mdc_reint.c
lustre/mdc/mdc_request.c
lustre/mdt/mdt_coordinator.c
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_hsm.c
lustre/mdt/mdt_hsm_cdt_client.c
lustre/mdt/mdt_internal.h
lustre/mdt/mdt_lib.c
lustre/mdt/mdt_open.c
lustre/mdt/mdt_reint.c
lustre/mdt/mdt_restripe.c
lustre/mdt/mdt_xattr.c
lustre/obdecho/echo_client.c
lustre/ptlrpc/ptlrpc_internal.h
lustre/ptlrpc/sec.c