diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-08-25 05:30:00 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-08-25 05:30:00 +0000 |
commit | ee355114ec6062d00c1376b184b886a39e74fd4e (patch) | |
tree | da9330872894208b121ac18e2abbc801b67f1509 /fs/open.c | |
parent | d1003cbd87479d4962fe017c0f913dde9c4d026a (diff) |
Merge with Linux 2.4.0-test6-pre9.
Diffstat (limited to 'fs/open.c')
-rw-r--r-- | fs/open.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -804,11 +804,10 @@ int filp_close(struct file *filp, fl_owner_t id) * or not in the open-files bitmap. dup2 uses this to retain the fd * without races. */ -int do_close(unsigned int fd, int release) +int do_close(struct files_struct *files, unsigned int fd, int release) { int error; struct file * filp; - struct files_struct * files = current->files; error = -EBADF; write_lock(&files->file_lock); @@ -829,7 +828,7 @@ out_unlock: asmlinkage long sys_close(unsigned int fd) { - return do_close(fd, 1); + return do_close(current->files, fd, 1); } /* |