staging/lustre/libcfs: remove cfs_curproc_groups_nr
authorPeng Tao <bergwolf@gmail.com>
Wed, 22 Jan 2014 13:47:33 +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 507d16b9213c4b5445ca6b9ba91b2c2e0d385a3a..9e52393838287168c197ec4ae15233e3b2ff52c8 100644 (file)
 #ifndef __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
  *
index a2ef64c3403d90bee1833ad4e5ab955e07c12906..01370629e14f49cb1cd5b920500d391eed984a35 100644 (file)
  * 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. */
 #define cfs_cap_pack(cap) (cap)
 #define cfs_cap_unpack(cap) (cap)
@@ -292,7 +282,6 @@ out:
 }
 EXPORT_SYMBOL(cfs_get_environ);
 
-EXPORT_SYMBOL(cfs_curproc_groups_nr);
 EXPORT_SYMBOL(cfs_cap_raise);
 EXPORT_SYMBOL(cfs_cap_lower);
 EXPORT_SYMBOL(cfs_cap_raised);