Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target...
[cascardo/linux.git] / fs / fs_struct.c
index 5df4775..fe6ca58 100644 (file)
@@ -164,27 +164,3 @@ struct fs_struct init_fs = {
        .seq            = SEQCNT_ZERO,
        .umask          = 0022,
 };
-
-void daemonize_fs_struct(void)
-{
-       struct fs_struct *fs = current->fs;
-
-       if (fs) {
-               int kill;
-
-               task_lock(current);
-
-               spin_lock(&init_fs.lock);
-               init_fs.users++;
-               spin_unlock(&init_fs.lock);
-
-               spin_lock(&fs->lock);
-               current->fs = &init_fs;
-               kill = !--fs->users;
-               spin_unlock(&fs->lock);
-
-               task_unlock(current);
-               if (kill)
-                       free_fs_struct(fs);
-       }
-}