Commit 8b393108 authored by Anton Altaparmakov's avatar Anton Altaparmakov

NTFS: Attempting to write outside initialized size is _not_ a bug so remove

      the bug check from fs/ntfs/aops.c::ntfs_write_mst_block().  It is in
      fact required to write outside initialized size when preparing to
      extend the initialized size.
Signed-off-by: default avatarAnton Altaparmakov <aia21@cantab.net>
parent 565e162d
......@@ -76,6 +76,10 @@ ToDo/Notes:
- Modify fs/ntfs/mft.c::write_mft_record_nolock() so that it only
writes the mft record if the buffers belonging to it are dirty.
Otherwise we assume that it was written out by other means already.
- Attempting to write outside initialized size is _not_ a bug so remove
the bug check from fs/ntfs/aops.c::ntfs_write_mst_block(). It is in
fact required to write outside initialized size when preparing to
extend the initialized size.
2.1.20 - Fix two stupid bugs introduced in 2.1.18 release.
......
......@@ -892,8 +892,6 @@ static int ntfs_write_mst_block(struct writeback_control *wbc,
}
BUG_ON(!rec_is_dirty);
}
/* Attempting to write outside the initialized size is a bug. */
BUG_ON(((block + 1) << bh_size_bits) > ni->initialized_size);
if (!buffer_mapped(bh)) {
ntfs_error(vol->sb, "Writing ntfs records without "
"existing mapped buffers is not "
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment