NTFS: Use i_size_read() in fs/ntfs/file.c::ntfs_file_open().
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user