diff options
Diffstat (limited to 'mm/filemap.c')
-rw-r--r-- | mm/filemap.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/mm/filemap.c b/mm/filemap.c index adbac104f34c..100b99c2d504 100644 --- a/mm/filemap.c +++ b/mm/filemap.c | |||
@@ -1967,7 +1967,6 @@ inline int generic_write_checks(struct file *file, loff_t *pos, size_t *count, i | |||
1967 | if (unlikely(*pos + *count > MAX_NON_LFS && | 1967 | if (unlikely(*pos + *count > MAX_NON_LFS && |
1968 | !(file->f_flags & O_LARGEFILE))) { | 1968 | !(file->f_flags & O_LARGEFILE))) { |
1969 | if (*pos >= MAX_NON_LFS) { | 1969 | if (*pos >= MAX_NON_LFS) { |
1970 | send_sig(SIGXFSZ, current, 0); | ||
1971 | return -EFBIG; | 1970 | return -EFBIG; |
1972 | } | 1971 | } |
1973 | if (*count > MAX_NON_LFS - (unsigned long)*pos) { | 1972 | if (*count > MAX_NON_LFS - (unsigned long)*pos) { |
@@ -1985,7 +1984,6 @@ inline int generic_write_checks(struct file *file, loff_t *pos, size_t *count, i | |||
1985 | if (likely(!isblk)) { | 1984 | if (likely(!isblk)) { |
1986 | if (unlikely(*pos >= inode->i_sb->s_maxbytes)) { | 1985 | if (unlikely(*pos >= inode->i_sb->s_maxbytes)) { |
1987 | if (*count || *pos > inode->i_sb->s_maxbytes) { | 1986 | if (*count || *pos > inode->i_sb->s_maxbytes) { |
1988 | send_sig(SIGXFSZ, current, 0); | ||
1989 | return -EFBIG; | 1987 | return -EFBIG; |
1990 | } | 1988 | } |
1991 | /* zero-length writes at ->s_maxbytes are OK */ | 1989 | /* zero-length writes at ->s_maxbytes are OK */ |