diff options
-rw-r--r-- | fs/gfs2/ops_file.c | 2 | ||||
-rw-r--r-- | fs/ntfs/file.c | 2 | ||||
-rw-r--r-- | fs/open.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/fs/gfs2/ops_file.c b/fs/gfs2/ops_file.c index 7eb4b280ac66..bb11fd6752d3 100644 --- a/fs/gfs2/ops_file.c +++ b/fs/gfs2/ops_file.c | |||
@@ -406,7 +406,7 @@ static int gfs2_open(struct inode *inode, struct file *file) | |||
406 | 406 | ||
407 | if (!(file->f_flags & O_LARGEFILE) && | 407 | if (!(file->f_flags & O_LARGEFILE) && |
408 | ip->i_di.di_size > MAX_NON_LFS) { | 408 | ip->i_di.di_size > MAX_NON_LFS) { |
409 | error = -EFBIG; | 409 | error = -EOVERFLOW; |
410 | goto fail_gunlock; | 410 | goto fail_gunlock; |
411 | } | 411 | } |
412 | 412 | ||
diff --git a/fs/ntfs/file.c b/fs/ntfs/file.c index c814204d4ea0..6cd08dfdc2ed 100644 --- a/fs/ntfs/file.c +++ b/fs/ntfs/file.c | |||
@@ -61,7 +61,7 @@ static int ntfs_file_open(struct inode *vi, struct file *filp) | |||
61 | { | 61 | { |
62 | if (sizeof(unsigned long) < 8) { | 62 | if (sizeof(unsigned long) < 8) { |
63 | if (i_size_read(vi) > MAX_LFS_FILESIZE) | 63 | if (i_size_read(vi) > MAX_LFS_FILESIZE) |
64 | return -EFBIG; | 64 | return -EOVERFLOW; |
65 | } | 65 | } |
66 | return generic_file_open(vi, filp); | 66 | return generic_file_open(vi, filp); |
67 | } | 67 | } |
@@ -1177,7 +1177,7 @@ asmlinkage long sys_vhangup(void) | |||
1177 | int generic_file_open(struct inode * inode, struct file * filp) | 1177 | int generic_file_open(struct inode * inode, struct file * filp) |
1178 | { | 1178 | { |
1179 | if (!(filp->f_flags & O_LARGEFILE) && i_size_read(inode) > MAX_NON_LFS) | 1179 | if (!(filp->f_flags & O_LARGEFILE) && i_size_read(inode) > MAX_NON_LFS) |
1180 | return -EFBIG; | 1180 | return -EOVERFLOW; |
1181 | return 0; | 1181 | return 0; |
1182 | } | 1182 | } |
1183 | 1183 | ||