From eed6b7c84cc33f229f6fecd884d9a22af5bec514 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Fri, 28 Jul 2000 22:58:42 +0000 Subject: Merge with Linux 2.4.0-test5-pre6. --- fs/jffs/inode-v23.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'fs/jffs') diff --git a/fs/jffs/inode-v23.c b/fs/jffs/inode-v23.c index 1447554ed..b1973918d 100644 --- a/fs/jffs/inode-v23.c +++ b/fs/jffs/inode-v23.c @@ -1225,7 +1225,6 @@ jffs_file_write(struct file *filp, const char *buf, size_t count, loff_t *ppos) 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 @@ jffs_file_write(struct file *filp, const char *buf, size_t count, loff_t *ppos) 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), -- cgit v1.2.3