Commit 8bb73521 authored by Anton Altaparmakov's avatar Anton Altaparmakov

NTFS: Remove two bogus BUG_ON()s from fs/ntfs/mft.c.

Signed-off-by: default avatarAnton Altaparmakov <aia21@cantab.net>
parent 84d6ebe6
...@@ -45,6 +45,7 @@ ToDo/Notes: ...@@ -45,6 +45,7 @@ ToDo/Notes:
need to panic() if the allocation fails as it now cannot fail. need to panic() if the allocation fails as it now cannot fail.
- Fix two nasty runlist merging bugs that had gone unnoticed so far. - Fix two nasty runlist merging bugs that had gone unnoticed so far.
Thanks to Stefano Picerno for the bug report. Thanks to Stefano Picerno for the bug report.
- Remove two bogus BUG_ON()s from fs/ntfs/mft.c.
2.1.23 - Implement extension of resident files and make writing safe as well as 2.1.23 - Implement extension of resident files and make writing safe as well as
many bug fixes, cleanups, and enhancements... many bug fixes, cleanups, and enhancements...
......
...@@ -511,7 +511,6 @@ int ntfs_sync_mft_mirror(ntfs_volume *vol, const unsigned long mft_no, ...@@ -511,7 +511,6 @@ int ntfs_sync_mft_mirror(ntfs_volume *vol, const unsigned long mft_no,
} while (bh); } while (bh);
tail->b_this_page = head; tail->b_this_page = head;
attach_page_buffers(page, head); attach_page_buffers(page, head);
BUG_ON(!page_has_buffers(page));
} }
bh = head = page_buffers(page); bh = head = page_buffers(page);
BUG_ON(!bh); BUG_ON(!bh);
...@@ -692,7 +691,6 @@ int write_mft_record_nolock(ntfs_inode *ni, MFT_RECORD *m, int sync) ...@@ -692,7 +691,6 @@ int write_mft_record_nolock(ntfs_inode *ni, MFT_RECORD *m, int sync)
*/ */
if (!NInoTestClearDirty(ni)) if (!NInoTestClearDirty(ni))
goto done; goto done;
BUG_ON(!page_has_buffers(page));
bh = head = page_buffers(page); bh = head = page_buffers(page);
BUG_ON(!bh); BUG_ON(!bh);
rl = NULL; rl = NULL;
......
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