diff options
author | Anton Altaparmakov <aia21@cantab.net> | 2004-11-17 16:45:08 +0100 |
---|---|---|
committer | Anton Altaparmakov <aia21@cantab.net> | 2005-05-04 18:02:25 +0200 |
commit | d4b9ba7bf6f38cff55b5d95a0db7dd91311ce20a (patch) | |
tree | b86c83f8c04e159bb8f806990cbf61e88ceebf30 /fs/ntfs/file.c | |
parent | NTFS: Use i_size_read() once and then use the cached value in (diff) | |
download | linux-d4b9ba7bf6f38cff55b5d95a0db7dd91311ce20a.tar.xz linux-d4b9ba7bf6f38cff55b5d95a0db7dd91311ce20a.zip |
NTFS: Use i_size_read() in fs/ntfs/file.c::ntfs_file_open().
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
Diffstat (limited to 'fs/ntfs/file.c')
-rw-r--r-- | fs/ntfs/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ntfs/file.c b/fs/ntfs/file.c index db8713ea0d27..e0f530ce6b99 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); |