Commit 4492b1b5 authored by Anton Altaparmakov's avatar Anton Altaparmakov

NTFS: Fix debugging check in fs/ntfs/aops.c::ntfs_read_block().

parent 600a1382
...@@ -28,6 +28,7 @@ ToDo: ...@@ -28,6 +28,7 @@ ToDo:
- Fix a stupid bug introduced in 2.0.15 where we were unmapping the - Fix a stupid bug introduced in 2.0.15 where we were unmapping the
wrong inode in fs/ntfs/inode.c::ntfs_attr_iget(). wrong inode in fs/ntfs/inode.c::ntfs_attr_iget().
- Fix debugging check in fs/ntfs/aops.c::ntfs_read_block().
- Convert $MFT/$BITMAP access to attribute inode API and remove all - Convert $MFT/$BITMAP access to attribute inode API and remove all
remnants of the ugly mftbmp address space and operations hack. This remnants of the ugly mftbmp address space and operations hack. This
means we finally have only one readpage function as well as only one means we finally have only one readpage function as well as only one
......
...@@ -186,7 +186,7 @@ static int ntfs_read_block(struct page *page) ...@@ -186,7 +186,7 @@ static int ntfs_read_block(struct page *page)
zblock = (ni->initialized_size + blocksize - 1) >> blocksize_bits; zblock = (ni->initialized_size + blocksize - 1) >> blocksize_bits;
#ifdef DEBUG #ifdef DEBUG
if (unlikely(!ni->run_list.rl && !ni->mft_no)) if (unlikely(!ni->run_list.rl && !ni->mft_no && !NInoAttr(ni)))
panic("NTFS: $MFT/$DATA run list has been unmapped! This is a " panic("NTFS: $MFT/$DATA run list has been unmapped! This is a "
"very serious bug! Cannot continue..."); "very serious bug! Cannot continue...");
#endif #endif
......
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