Whamcloud - gitweb
Revert "b=19808 2.6.29-fc11 patchless client support"
[fs/lustre-release.git] / libcfs / libcfs / linux / linux-prim.c
index be9822d..decc551 100644 (file)
@@ -40,7 +40,6 @@
 #endif
 #include <linux/module.h>
 #include <linux/kernel.h>
-#include <linux/fs_struct.h>
 #include <linux/sched.h>
 
 #include <libcfs/libcfs.h>
@@ -234,24 +233,19 @@ void cfs_daemonize(char *str) {
 }
 
 int cfs_daemonize_ctxt(char *str) {
-
-        cfs_daemonize(str);
-#ifndef HAVE_UNSHARE_FS_STRUCT
-        {
         struct task_struct *tsk = current;
         struct fs_struct *fs = NULL;
+
+        cfs_daemonize(str);
         fs = copy_fs_struct(tsk->fs);
         if (fs == NULL)
                 return -ENOMEM;
         exit_fs(tsk);
         tsk->fs = fs;
-        }
-#else
-        unshare_fs_struct();
-#endif
         return 0;
 }
 
+
 sigset_t
 cfs_get_blockedsigs(void)
 {