Commit 82c3fef5 authored by Peng Tao's avatar Peng Tao Committed by Greg Kroah-Hartman

staging/lustre/libcfs: remove cfs_curproc_groups_nr

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 e92c0809
...@@ -43,13 +43,6 @@ ...@@ -43,13 +43,6 @@
#ifndef __LIBCFS_CURPROC_H__ #ifndef __LIBCFS_CURPROC_H__
#define __LIBCFS_CURPROC_H__ #define __LIBCFS_CURPROC_H__
/*
* Portable API to access common characteristics of "current" UNIX process.
*
* Implemented in portals/include/libcfs/<os>/
*/
int cfs_curproc_groups_nr(void);
/* /*
* Plus, platform-specific constant * Plus, platform-specific constant
* *
......
...@@ -55,16 +55,6 @@ ...@@ -55,16 +55,6 @@
* for Linux kernel. * for Linux kernel.
*/ */
int cfs_curproc_groups_nr(void)
{
int nr;
task_lock(current);
nr = current_cred()->group_info->ngroups;
task_unlock(current);
return nr;
}
/* Currently all the CFS_CAP_* defines match CAP_* ones. */ /* Currently all the CFS_CAP_* defines match CAP_* ones. */
#define cfs_cap_pack(cap) (cap) #define cfs_cap_pack(cap) (cap)
#define cfs_cap_unpack(cap) (cap) #define cfs_cap_unpack(cap) (cap)
...@@ -292,7 +282,6 @@ int cfs_get_environ(const char *key, char *value, int *val_len) ...@@ -292,7 +282,6 @@ int cfs_get_environ(const char *key, char *value, int *val_len)
} }
EXPORT_SYMBOL(cfs_get_environ); EXPORT_SYMBOL(cfs_get_environ);
EXPORT_SYMBOL(cfs_curproc_groups_nr);
EXPORT_SYMBOL(cfs_cap_raise); 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);
......
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