tree b86c83f8c04e159bb8f806990cbf61e88ceebf30
parent db30d160cd8dfe1e53435fd76f4189778f1c728e
author Anton Altaparmakov <[EMAIL PROTECTED]> Wed, 17 Nov 2004 15:45:08 +0000
committer Anton Altaparmakov <[EMAIL PROTECTED]> Wed, 04 May 2005 17:02:25 +0100
NTFS: Use i_size_read() in fs/ntfs/file.c::ntfs_file_open().
Signed-off-by: Anton Altaparmakov <[EMAIL PROTECTED]>
fs/ntfs/ChangeLog | 1 +
fs/ntfs/file.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/fs/ntfs/ChangeLog b/fs/ntfs/ChangeLog
--- a/fs/ntfs/ChangeLog
+++ b/fs/ntfs/ChangeLog
@@ -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.
diff --git a/fs/ntfs/file.c b/fs/ntfs/file.c
--- 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);
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html