aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ntfs
diff options
context:
space:
mode:
authorAnton Altaparmakov <aia21@cantab.net>2005-10-19 07:23:10 -0400
committerAnton Altaparmakov <aia21@cantab.net>2005-10-19 07:23:10 -0400
commitd5aeaef37dc9cb009ab5cb8abf325338d21d2b1a (patch)
tree462b8caf5a1f787398a93485e4170605f81ea8d9 /fs/ntfs
parent7d0ffdb279105d9a87b447758ce4a634496abfd1 (diff)
NTFS: Fix serious data corruption issue when writing.
Many thanks to Alberto Patino for testing and reporting the data corruption. And many apologies for corrupting his partition. Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
Diffstat (limited to 'fs/ntfs')
-rw-r--r--fs/ntfs/file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ntfs/file.c b/fs/ntfs/file.c
index 5fb341a16b52..a142bf3ba1a5 100644
--- a/fs/ntfs/file.c
+++ b/fs/ntfs/file.c
@@ -787,6 +787,7 @@ retry_remap:
787 vcn_len = rl[1].vcn - vcn; 787 vcn_len = rl[1].vcn - vcn;
788 lcn_block = lcn << (vol->cluster_size_bits - 788 lcn_block = lcn << (vol->cluster_size_bits -
789 blocksize_bits); 789 blocksize_bits);
790 cdelta = 0;
790 /* 791 /*
791 * If the number of remaining clusters in the 792 * If the number of remaining clusters in the
792 * @pages is smaller or equal to the number of 793 * @pages is smaller or equal to the number of