diff options
Diffstat (limited to 'fs/gfs2/file.c')
-rw-r--r-- | fs/gfs2/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/file.c b/fs/gfs2/file.c index 4edd662c8232..daadcd2e755f 100644 --- a/fs/gfs2/file.c +++ b/fs/gfs2/file.c | |||
@@ -491,7 +491,7 @@ static int gfs2_open(struct inode *inode, struct file *file) | |||
491 | goto fail; | 491 | goto fail; |
492 | 492 | ||
493 | if (!(file->f_flags & O_LARGEFILE) && | 493 | if (!(file->f_flags & O_LARGEFILE) && |
494 | ip->i_disksize > MAX_NON_LFS) { | 494 | i_size_read(inode) > MAX_NON_LFS) { |
495 | error = -EOVERFLOW; | 495 | error = -EOVERFLOW; |
496 | goto fail_gunlock; | 496 | goto fail_gunlock; |
497 | } | 497 | } |