From: alex Date: Thu, 16 Oct 2003 16:41:24 +0000 (+0000) Subject: - use USERMODEHELPER macro X-Git-Tag: v1_7_0_51~2^7~389 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=30da0ff4aedfba00522439056de9893810a96aa6;p=fs%2Flustre-release.git - use USERMODEHELPER macro --- diff --git a/lnet/libcfs/debug.c b/lnet/libcfs/debug.c index 61229f5..2a6a474 100644 --- a/lnet/libcfs/debug.c +++ b/lnet/libcfs/debug.c @@ -879,11 +879,7 @@ void portals_run_upcall(char **argv) LASSERT(argc >= 2); -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)) - rc = call_usermodehelper(argv[0], argv, envp); -#else - rc = call_usermodehelper(argv[0], argv, envp, 1); -#endif + rc = USERMODEHELPER(argv[0], argv, envp); if (rc < 0) { CERROR("Error %d invoking portals upcall %s %s%s%s%s%s%s%s%s; " "check /proc/sys/portals/upcall\n", diff --git a/lustre/portals/libcfs/debug.c b/lustre/portals/libcfs/debug.c index 61229f5..2a6a474 100644 --- a/lustre/portals/libcfs/debug.c +++ b/lustre/portals/libcfs/debug.c @@ -879,11 +879,7 @@ void portals_run_upcall(char **argv) LASSERT(argc >= 2); -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)) - rc = call_usermodehelper(argv[0], argv, envp); -#else - rc = call_usermodehelper(argv[0], argv, envp, 1); -#endif + rc = USERMODEHELPER(argv[0], argv, envp); if (rc < 0) { CERROR("Error %d invoking portals upcall %s %s%s%s%s%s%s%s%s; " "check /proc/sys/portals/upcall\n",