summaryrefslogtreecommitdiffstats
path: root/fs/file.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2020-11-20 17:14:20 -0600
committerEric W. Biederman <ebiederm@xmission.com>2020-12-10 12:39:36 -0600
commit950db38ff2c01b7aabbd7ab4a50b7992750fa63d (patch)
tree2df8df7cc4a7eba5fd3f003141144675becbe968 /fs/file.c
parent1f702603e7125a390b5cdf5ce00539781cfcc86a (diff)
downloadlinux-950db38ff2c01b7aabbd7ab4a50b7992750fa63d.tar.gz
linux-950db38ff2c01b7aabbd7ab4a50b7992750fa63d.tar.xz
exec: Remove reset_files_struct
Now that exec no longer needs to restore the previous value of current->files on error there are no more callers of reset_files_struct so remove it. Acked-by: Christian Brauner <christian.brauner@ubuntu.com> v1: https://lkml.kernel.org/r/20200817220425.9389-3-ebiederm@xmission.com Link: https://lkml.kernel.org/r/20201120231441.29911-3-ebiederm@xmission.com Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'fs/file.c')
-rw-r--r--fs/file.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/fs/file.c b/fs/file.c
index 4559b5fec3bd..beae7c55c84c 100644
--- a/fs/file.c
+++ b/fs/file.c
@@ -436,18 +436,6 @@ void put_files_struct(struct files_struct *files)
}
}
-void reset_files_struct(struct files_struct *files)
-{
- struct task_struct *tsk = current;
- struct files_struct *old;
-
- old = tsk->files;
- task_lock(tsk);
- tsk->files = files;
- task_unlock(tsk);
- put_files_struct(old);
-}
-
void exit_files(struct task_struct *tsk)
{
struct files_struct * files = tsk->files;