diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1997-04-29 21:13:14 +0000 |
---|---|---|
committer | <ralf@linux-mips.org> | 1997-04-29 21:13:14 +0000 |
commit | 19c9bba94152148523ba0f7ef7cffe3d45656b11 (patch) | |
tree | 40b1cb534496a7f1ca0f5c314a523c69f1fee464 /include/linux/file.h | |
parent | 7206675c40394c78a90e74812bbdbf8cf3cca1be (diff) |
Import of Linux/MIPS 2.1.36
Diffstat (limited to 'include/linux/file.h')
-rw-r--r-- | include/linux/file.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/linux/file.h b/include/linux/file.h index a3297909d..4ba5311e8 100644 --- a/include/linux/file.h +++ b/include/linux/file.h @@ -12,14 +12,17 @@ extern inline struct file * fget(unsigned long fd) return file; } -extern void __fput(struct file *, struct inode *); +extern int __fput(struct file *, struct inode *); -extern inline void fput(struct file *file, struct inode *inode) +extern inline int fput(struct file *file, struct inode *inode) { int count = file->f_count-1; + int error = 0; + if (!count) - __fput(file, inode); + error = __fput(file, inode); file->f_count = count; + return error; } #endif |