2002-08-20 23:41:27

by Anton Altaparmakov

[permalink] [raw]
Subject: [BK-2.5 PATCH] NTFS 2.1.0 3/7: Small bug fix

Linus, please do a

bk pull http://linux-ntfs.bkbits.net/ntfs-2.5

Thanks! The 3rd changeset, fixing a small bug in previous changeset.

Best regards,

Anton
--
Anton Altaparmakov <aia21 at cantab.net> (replace at with @)
Linux NTFS maintainer / IRC: #ntfs on irc.openprojects.net
WWW: http://linux-ntfs.sf.net/, http://www-stu.christs.cam.ac.uk/~aia21/

===================================================================

This will update the following files:

fs/ntfs/aops.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)

through these ChangeSets:

<[email protected]> (02/08/14 1.456.26.4)
NTFS: Fix silly bug in ntfs_write_block(). iblock and dblock have
different semantics so the check was bogus. Compare the byte sizes
instead.


diff -Nru a/fs/ntfs/aops.c b/fs/ntfs/aops.c
--- a/fs/ntfs/aops.c Tue Aug 20 23:57:24 2002
+++ b/fs/ntfs/aops.c Tue Aug 20 23:57:24 2002
@@ -560,7 +560,8 @@
continue;

/* Make sure we have enough initialized size. */
- if (unlikely((block >= iblock) && (iblock < dblock))) {
+ if (unlikely((block >= iblock) &&
+ (ni->initialized_size < vi->i_size))) {
/*
* If this page is fully outside initialized size, zero
* out all pages between the current initialized size