Commit 3b01cf80 authored by Peng Tao's avatar Peng Tao Committed by Greg Kroah-Hartman

staging/lustre/libcfs: remove cfs_curproc_cap_unpack

no user.

Cc: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: default avatarPeng Tao <bergwolf@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 82c3fef5
...@@ -84,7 +84,6 @@ void cfs_cap_raise(cfs_cap_t cap); ...@@ -84,7 +84,6 @@ void cfs_cap_raise(cfs_cap_t cap);
void cfs_cap_lower(cfs_cap_t cap); void cfs_cap_lower(cfs_cap_t cap);
int cfs_cap_raised(cfs_cap_t cap); int cfs_cap_raised(cfs_cap_t cap);
cfs_cap_t cfs_curproc_cap_pack(void); cfs_cap_t cfs_curproc_cap_pack(void);
void cfs_curproc_cap_unpack(cfs_cap_t cap);
int cfs_capable(cfs_cap_t cap); int cfs_capable(cfs_cap_t cap);
/* __LIBCFS_CURPROC_H__ */ /* __LIBCFS_CURPROC_H__ */
......
...@@ -116,15 +116,6 @@ cfs_cap_t cfs_curproc_cap_pack(void) ...@@ -116,15 +116,6 @@ cfs_cap_t cfs_curproc_cap_pack(void)
return cap; return cap;
} }
void cfs_curproc_cap_unpack(cfs_cap_t cap)
{
struct cred *cred;
if ((cred = prepare_creds())) {
cfs_kernel_cap_unpack(&cred->cap_effective, cap);
commit_creds(cred);
}
}
int cfs_capable(cfs_cap_t cap) int cfs_capable(cfs_cap_t cap)
{ {
return capable(cfs_cap_unpack(cap)); return capable(cfs_cap_unpack(cap));
...@@ -286,7 +277,6 @@ EXPORT_SYMBOL(cfs_cap_raise); ...@@ -286,7 +277,6 @@ EXPORT_SYMBOL(cfs_cap_raise);
EXPORT_SYMBOL(cfs_cap_lower); EXPORT_SYMBOL(cfs_cap_lower);
EXPORT_SYMBOL(cfs_cap_raised); EXPORT_SYMBOL(cfs_cap_raised);
EXPORT_SYMBOL(cfs_curproc_cap_pack); EXPORT_SYMBOL(cfs_curproc_cap_pack);
EXPORT_SYMBOL(cfs_curproc_cap_unpack);
EXPORT_SYMBOL(cfs_capable); EXPORT_SYMBOL(cfs_capable);
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment