]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/fs_struct.c
hfsplus: rework functionality of getting, setting and deleting of extended attributes
[karo-tx-linux.git] / fs / fs_struct.c
index 5df4775fea03638f14d1408cfe16408e8a0ed6d7..fe6ca583bbc02b3513a2b3f76bb4b169c0f7d41c 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);
-       }
-}