aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ntfs/attrib.c
diff options
context:
space:
mode:
authorAnton Altaparmakov <aia21@cantab.net>2006-03-23 10:59:32 -0500
committerAnton Altaparmakov <aia21@cantab.net>2006-03-23 10:59:32 -0500
commitf95c4018fd4b0bdef9b1bcb4eac7056e2a07282a (patch)
tree44014b7cb3aff48f008033c23425ff2b37fed34b /fs/ntfs/attrib.c
parenta0646a1f04f1ec4c7514e5b00496b54e054a2c99 (diff)
NTFS: Remove all the make_bad_inode() calls. This should only be called
from read inode and new inode code paths. Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
Diffstat (limited to 'fs/ntfs/attrib.c')
-rw-r--r--fs/ntfs/attrib.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/ntfs/attrib.c b/fs/ntfs/attrib.c
index 7a568eb7d80f..1663f5c3c6aa 100644
--- a/fs/ntfs/attrib.c
+++ b/fs/ntfs/attrib.c
@@ -2438,16 +2438,12 @@ undo_alloc:
2438 "chkdsk to recover.", IS_ERR(m) ? 2438 "chkdsk to recover.", IS_ERR(m) ?
2439 "restore attribute search context" : 2439 "restore attribute search context" :
2440 "truncate attribute runlist"); 2440 "truncate attribute runlist");
2441 make_bad_inode(vi);
2442 make_bad_inode(VFS_I(base_ni));
2443 NVolSetErrors(vol); 2441 NVolSetErrors(vol);
2444 } else if (mp_rebuilt) { 2442 } else if (mp_rebuilt) {
2445 if (ntfs_attr_record_resize(m, a, attr_len)) { 2443 if (ntfs_attr_record_resize(m, a, attr_len)) {
2446 ntfs_error(vol->sb, "Failed to restore attribute " 2444 ntfs_error(vol->sb, "Failed to restore attribute "
2447 "record in error code path. Run " 2445 "record in error code path. Run "
2448 "chkdsk to recover."); 2446 "chkdsk to recover.");
2449 make_bad_inode(vi);
2450 make_bad_inode(VFS_I(base_ni));
2451 NVolSetErrors(vol); 2447 NVolSetErrors(vol);
2452 } else /* if (success) */ { 2448 } else /* if (success) */ {
2453 if (ntfs_mapping_pairs_build(vol, (u8*)a + le16_to_cpu( 2449 if (ntfs_mapping_pairs_build(vol, (u8*)a + le16_to_cpu(
@@ -2460,8 +2456,6 @@ undo_alloc:
2460 "mapping pairs array in error " 2456 "mapping pairs array in error "
2461 "code path. Run chkdsk to " 2457 "code path. Run chkdsk to "
2462 "recover."); 2458 "recover.");
2463 make_bad_inode(vi);
2464 make_bad_inode(VFS_I(base_ni));
2465 NVolSetErrors(vol); 2459 NVolSetErrors(vol);
2466 } 2460 }
2467 flush_dcache_mft_record_page(ctx->ntfs_ino); 2461 flush_dcache_mft_record_page(ctx->ntfs_ino);