]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/ntfs/mft.c
NTFS: Fix a bug in fs/ntfs/inode.c::ntfs_read_locked_index_inode() where we
[karo-tx-linux.git] / fs / ntfs / mft.c
index 6499aafc22582a0891f904468cc5930f0b4f626e..eb3eb143a32c51cc2cf64085eee4b0350ac873de 100644 (file)
@@ -93,6 +93,7 @@ static inline MFT_RECORD *map_mft_record_page(ntfs_inode *ni)
                                "Run chkdsk.", ni->mft_no);
                ntfs_unmap_page(page);
                page = ERR_PTR(-EIO);
+               NVolSetErrors(vol);
        }
 err_out:
        ni->page = NULL;
@@ -650,10 +651,7 @@ err_out:
  * fs/ntfs/aops.c::mark_ntfs_record_dirty().
  *
  * On success, clean the mft record and return 0.  On error, leave the mft
- * record dirty and return -errno.  The caller should call make_bad_inode() on
- * the base inode to ensure no more access happens to this inode.  We do not do
- * it here as the caller may want to finish writing other extent mft records
- * first to minimize on-disk metadata inconsistencies.
+ * record dirty and return -errno.
  *
  * NOTE:  We always perform synchronous i/o and ignore the @sync parameter.
  * However, if the mft record has a counterpart in the mft mirror and @sync is