commit | d4b9ba7bf6f38cff55b5d95a0db7dd91311ce20a | [log] [tgz] |
---|---|---|
author | Anton Altaparmakov <aia21@cantab.net> | Wed Nov 17 15:45:08 2004 +0000 |
committer | Anton Altaparmakov <aia21@cantab.net> | Wed May 04 17:02:25 2005 +0100 |
tree | b86c83f8c04e159bb8f806990cbf61e88ceebf30 | |
parent | db30d160cd8dfe1e53435fd76f4189778f1c728e [diff] [blame] |
NTFS: Use i_size_read() in fs/ntfs/file.c::ntfs_file_open(). Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
diff --git a/fs/ntfs/file.c b/fs/ntfs/file.c index db8713e..e0f530c 100644 --- a/fs/ntfs/file.c +++ b/fs/ntfs/file.c
@@ -47,7 +47,7 @@ static int ntfs_file_open(struct inode *vi, struct file *filp) { if (sizeof(unsigned long) < 8) { - if (vi->i_size > MAX_LFS_FILESIZE) + if (i_size_read(vi) > MAX_LFS_FILESIZE) return -EFBIG; } return generic_file_open(vi, filp);