VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Eric W. Biederman <ebiederm@xmission.com> 2020-11-20 17:14:20 -0600 committer: Eric W. Biederman <ebiederm@xmission.com> 2020-12-10 12:39:36 -0600 commit: 950db38ff2c01b7aabbd7ab4a50b7992750fa63d parent: 1f702603e7125a390b5cdf5ce00539781cfcc86a
Commit Summary:
exec: Remove reset_files_struct
Diffstat:
1 file changed, 0 insertions, 11 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;