Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 70708
b: refs/heads/master
c: a9c62a1
h: refs/heads/master
v: v3
  • Loading branch information
Alan Cox authored and Linus Torvalds committed Oct 17, 2007
1 parent a7052ec commit b37f19f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 28e3fed8b79c76450f264e77c58d0f5fbd2dd739
refs/heads/master: a9c62a18a291499d15a370d08771e781fbaf91e6
2 changes: 1 addition & 1 deletion trunk/fs/gfs2/ops_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ static int gfs2_open(struct inode *inode, struct file *file)

if (!(file->f_flags & O_LARGEFILE) &&
ip->i_di.di_size > MAX_NON_LFS) {
error = -EFBIG;
error = -EOVERFLOW;
goto fail_gunlock;
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/ntfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static int ntfs_file_open(struct inode *vi, struct file *filp)
{
if (sizeof(unsigned long) < 8) {
if (i_size_read(vi) > MAX_LFS_FILESIZE)
return -EFBIG;
return -EOVERFLOW;
}
return generic_file_open(vi, filp);
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/open.c
Original file line number Diff line number Diff line change
Expand Up @@ -1177,7 +1177,7 @@ asmlinkage long sys_vhangup(void)
int generic_file_open(struct inode * inode, struct file * filp)
{
if (!(filp->f_flags & O_LARGEFILE) && i_size_read(inode) > MAX_NON_LFS)
return -EFBIG;
return -EOVERFLOW;
return 0;
}

Expand Down

0 comments on commit b37f19f

Please sign in to comment.