staging/lustre/libcfs: remove cfs_curproc_cap_unpack
authorPeng Tao <bergwolf@gmail.com>
Wed, 22 Jan 2014 13:47:34 +0000 (21:47 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Feb 2014 17:46:17 +0000 (09:46 -0800)
no user.

Cc: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Peng Tao <bergwolf@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/include/linux/libcfs/curproc.h
drivers/staging/lustre/lustre/libcfs/linux/linux-curproc.c

index 9e52393838287168c197ec4ae15233e3b2ff52c8..d12cfb176457051f730040deac1fb09183f4a851 100644 (file)
@@ -84,7 +84,6 @@ void cfs_cap_raise(cfs_cap_t cap);
 void cfs_cap_lower(cfs_cap_t cap);
 int cfs_cap_raised(cfs_cap_t cap);
 cfs_cap_t cfs_curproc_cap_pack(void);
-void cfs_curproc_cap_unpack(cfs_cap_t cap);
 int cfs_capable(cfs_cap_t cap);
 
 /* __LIBCFS_CURPROC_H__ */
index 01370629e14f49cb1cd5b920500d391eed984a35..65cb2fa232f5120bb6feca407868c4ec74543b80 100644 (file)
@@ -116,15 +116,6 @@ cfs_cap_t cfs_curproc_cap_pack(void)
        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)
 {
        return capable(cfs_cap_unpack(cap));
@@ -286,7 +277,6 @@ EXPORT_SYMBOL(cfs_cap_raise);
 EXPORT_SYMBOL(cfs_cap_lower);
 EXPORT_SYMBOL(cfs_cap_raised);
 EXPORT_SYMBOL(cfs_curproc_cap_pack);
-EXPORT_SYMBOL(cfs_curproc_cap_unpack);
 EXPORT_SYMBOL(cfs_capable);
 
 /*