patch-2.4.0-test5 linux/fs/ext2/file.c

Next file: linux/fs/ext2/inode.c
Previous file: linux/fs/dquot.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test4/linux/fs/ext2/file.c linux/fs/ext2/file.c
@@ -90,7 +90,8 @@
  */
 static int ext2_open_file (struct inode * inode, struct file * filp)
 {
-	if (inode->u.ext2_i.i_high_size && !(filp->f_flags & O_LARGEFILE))
+	if (!(filp->f_flags & O_LARGEFILE) &&
+	    inode->i_size > 0x7FFFFFFFLL)
 		return -EFBIG;
 	return 0;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)