patch-2.1.31 linux/include/linux/file.h

Next file: linux/include/linux/fs.h
Previous file: linux/include/linux/console.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.30/linux/include/linux/file.h linux/include/linux/file.h
@@ -12,14 +12,17 @@
 	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

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov