X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fliblustre%2Flutil.c;h=ba1c35ba2f34e6ed1b265a9f420df54a07c231e5;hb=f3864905b26a90ed3a9bb6f99357264fa40015c4;hp=2ec4aa2e8026f6ede4f9c7f3ffca2d2c663c936e;hpb=a3850a044ef7cc2658b355672338b9865ed59fe4;p=fs%2Flustre-release.git diff --git a/lustre/liblustre/lutil.c b/lustre/liblustre/lutil.c index 2ec4aa2..ba1c35b 100644 --- a/lustre/liblustre/lutil.c +++ b/lustre/liblustre/lutil.c @@ -34,47 +34,27 @@ * Lustre is a trademark of Sun Microsystems, Inc. */ -#include -#include -#include -#include -#include - +#include +#include #include -#ifdef HAVE_NETDB_H +#include #include -#endif -#ifdef _AIX -#include "syscall_AIX.h" -#else +#include +#include +#include +#include #include -#endif +#include +#include #include -#ifdef HAVE_NETINET_IN_H -#include -#endif -#include -#ifdef HAVE_ARPA_INET_H -#include -#endif - +#include +#include +#include +#include +#include #include "lutil.h" - - -struct task_struct *current; - -void *inter_module_get(char *arg) -{ - if (!strcmp(arg, "ldlm_cli_cancel_unused")) - return ldlm_cli_cancel_unused; - else if (!strcmp(arg, "ldlm_namespace_cleanup")) - return ldlm_namespace_cleanup; - else if (!strcmp(arg, "ldlm_replay_locks")) - return ldlm_replay_locks; - else - return NULL; -} +struct task_struct *current; /* * random number generator stuff @@ -197,7 +177,6 @@ int liblustre_init_current(char *comm) current->gid = getgid(); current->fsuid = geteuid(); current->fsgid = getegid(); - memset(¤t->pending, 0, sizeof(current->pending)); current->max_groups = sysconf(_SC_NGROUPS_MAX); current->groups = malloc(sizeof(gid_t) * current->max_groups);