]> err.no Git - linux-2.6/commitdiff
NTFS: Use i_size_read() in fs/ntfs/file.c::ntfs_file_open().
authorAnton Altaparmakov <aia21@cantab.net>
Wed, 17 Nov 2004 15:45:08 +0000 (15:45 +0000)
committerAnton Altaparmakov <aia21@cantab.net>
Wed, 4 May 2005 16:02:25 +0000 (17:02 +0100)
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
fs/ntfs/ChangeLog
fs/ntfs/file.c

index ff0d9b132df8364c8d88b8d0ef4f0a22100d5e00..6d2a99c13d3059e5cc5fcff3bda74bc7eb5396ee 100644 (file)
@@ -33,6 +33,7 @@ ToDo/Notes:
        - Use i_size_read() in fs/ntfs/logfile.c::ntfs_{check,empty}_logfile().
        - Use i_size_read() once and then use the cached value in
          fs/ntfs/lcnalloc.c::ntfs_cluster_alloc().
+       - Use i_size_read() in fs/ntfs/file.c::ntfs_file_open().
 
 2.1.22 - Many bug and race fixes and error handling improvements.
 
index db8713ea0d27a5092069ecb39f7a51aa5ba48925..e0f530ce6b996280eb718792a9ac048a348845c2 100644 (file)
@@ -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);