]> git.hungrycats.org Git - linux/commitdiff
NTFS: Attempting to write outside initialized size is _not_ a bug so remove
authorAnton Altaparmakov <aia21@cantab.net>
Tue, 12 Oct 2004 10:09:27 +0000 (11:09 +0100)
committerAnton Altaparmakov <aia21@cantab.net>
Tue, 12 Oct 2004 10:09:27 +0000 (11:09 +0100)
      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: Anton Altaparmakov <aia21@cantab.net>
fs/ntfs/ChangeLog
fs/ntfs/aops.c

index bc1114a099a819d8008e192fc5234337e2b57c60..bbd8335ba83d94a4941eeb7d51051585e9dd8154 100644 (file)
@@ -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.
 
index 61da8d51fd6ed9d9934d59ddd1a82da66ea4c0bf..6070fe0341b59bc046b5d8590e5dc1fe71f70bfb 100644 (file)
@@ -892,8 +892,6 @@ no_buffers_err_out:
                        }
                        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 "