aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/gfs2/file.c')
-rw-r--r--fs/gfs2/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/file.c b/fs/gfs2/file.c
index 4edd662c823..daadcd2e755 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 }