patch-2.4.0-test5 linux/fs/jffs/inode-v23.c

Next file: linux/fs/jffs/jffs_fm.c
Previous file: linux/fs/isofs/joliet.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test4/linux/fs/jffs/inode-v23.c linux/fs/jffs/inode-v23.c
@@ -1225,7 +1225,6 @@
 	struct jffs_node *node;
 	struct dentry *dentry = filp->f_dentry; 
 	struct inode *inode = dentry->d_inode; 
-	unsigned long limit = current->rlim[RLIMIT_FSIZE].rlim_cur;
 	int written = 0;
 	loff_t pos;
 	int err;
@@ -1282,22 +1281,6 @@
 	if (filp->f_flags & O_APPEND)
 		pos = inode->i_size;
 
-
-	/*
-	 * Check whether we've reached the file size limit.
-	 */
-	err = -EFBIG;
-	if (limit != RLIM_INFINITY) {
-		if (pos >= limit) {
-			send_sig(SIGXFSZ, current, 0);
-			goto out;
-		}
-		if (count > limit - pos) {
-			send_sig(SIGXFSZ, current, 0);
-			count = limit - pos;
-		}
-	}
-	
 	/* Things are going to be written so we could allocate and
 	   initialize the necessary data structures now.  */
 	if (!(node = (struct jffs_node *) kmalloc(sizeof(struct jffs_node),

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