patch-2.1.37 linux/fs/dquot.c

Next file: linux/fs/exec.c
Previous file: linux/fs/dcache.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.36/linux/fs/dquot.c linux/fs/dquot.c
@@ -33,6 +33,7 @@
 #include <linux/fcntl.h>
 #include <linux/stat.h>
 #include <linux/tty.h>
+#include <linux/file.h>
 #include <linux/malloc.h>
 #include <linux/mount.h>
 #include <linux/smp.h>
@@ -989,7 +990,7 @@
 			}
 		} else
 			error = -EIO;
-	  filp->f_count--;
+		put_filp(filp);
 	} else
 		error = -EMFILE;
 	iput(inode);

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