staging: lustre: opencode cfs_cap_{raise, lower, raised}
authorNeilBrown <neilb@suse.com>
Tue, 20 Feb 2018 02:23:37 +0000 (13:23 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Feb 2018 14:03:22 +0000 (15:03 +0100)
commitcc738c1a69da27be8ff7885b4069fa02e45c75c1
tree5d3945b53a11c9a25c072a36dd72e93f2fcc619e
parent5ebaa2d14850205e44757c4d5fdd4097712d01ef
staging: lustre: opencode cfs_cap_{raise, lower, raised}

Each of these functions is used precisely once, so having
a separate exported function seems like overkill.

cfs_cap_raised() is trivial - one line.
cfs_cap_raise() and cfs_cap_lower() are used as a pair
which is more effectively implemented with
override_cred() / revert_creds().

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/include/linux/libcfs/curproc.h
drivers/staging/lustre/lnet/libcfs/linux/linux-curproc.c
drivers/staging/lustre/lustre/obdclass/llog.c