X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=fs%2Ffs_struct.c;h=fe6ca583bbc02b3513a2b3f76bb4b169c0f7d41c;hb=5bd665f28db2b04a8d6fe277342479906fc60b62;hp=5df4775fea03638f14d1408cfe16408e8a0ed6d7;hpb=318e15101993c0fdc3f23f24ac61fc7769d27e68;p=cascardo%2Flinux.git diff --git a/fs/fs_struct.c b/fs/fs_struct.c index 5df4775fea03..fe6ca583bbc0 100644 --- a/fs/fs_struct.c +++ b/fs/fs_struct.c @@ -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); - } -}