From 8b393108004edaf145e6abf5ad3c3a9950c4db78 Mon Sep 17 00:00:00 2001 From: Anton Altaparmakov Date: Tue, 12 Oct 2004 11:09:27 +0100 Subject: [PATCH] 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: Anton Altaparmakov --- fs/ntfs/ChangeLog | 4 ++++ fs/ntfs/aops.c | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/ntfs/ChangeLog b/fs/ntfs/ChangeLog index bc1114a099a81..bbd8335ba83d9 100644 --- a/fs/ntfs/ChangeLog +++ b/fs/ntfs/ChangeLog @@ -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. diff --git a/fs/ntfs/aops.c b/fs/ntfs/aops.c index 61da8d51fd6ed..6070fe0341b59 100644 --- a/fs/ntfs/aops.c +++ b/fs/ntfs/aops.c @@ -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 " -- 2.53.0