From a16129b8509728ae92ce205114ab453509e200f0 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Mon, 12 Apr 2004 19:22:25 -0700 Subject: [PATCH] get_files_struct cleanup From: Russell King Cleanup the 4 duplicate "get_files_struct" implementations into one get_files_struct() function to compliment put_files_struct(). --- include/linux/file.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/linux') diff --git a/include/linux/file.h b/include/linux/file.h index a488f738f9f0..b3fbadf31eed 100644 --- a/include/linux/file.h +++ b/include/linux/file.h @@ -75,6 +75,10 @@ static inline struct file * fcheck_files(struct files_struct *files, unsigned in #define fcheck(fd) fcheck_files(current->files, fd) extern void FASTCALL(fd_install(unsigned int fd, struct file * file)); + +struct task_struct; + +struct files_struct *get_files_struct(struct task_struct *); void FASTCALL(put_files_struct(struct files_struct *fs)); #endif /* __LINUX_FILE_H */ -- cgit v1.2.3