#ifdef NTFS_RW
.writepage = ntfs_mft_writepage, /* Write out the dirty mft
records in a page. */
+ .set_page_dirty = __set_page_dirty_nobuffers, /* Set the page dirty
+ without touching the buffers
+ belonging to the page. */
#endif /* NTFS_RW */
};
ntfs_debug("Entering for inode 0x%lx.", ni->mft_no);
BUG_ON(NInoAttr(ni));
BUG_ON(!max_bhs);
- BUG_ON(!page);
BUG_ON(!PageLocked(page));
/*
* If the ntfs_inode is clean no need to do anything. If it is dirty,
* mark it as clean now so that it can be redirtied later on if needed.
- * There is no danger of races as as long as the caller is holding the
- * locks for the mft record @m and the page it is in.
+ * There is no danger of races since the caller is holding the locks
+ * for the mft record @m and the page it is in.
*/
if (!NInoTestClearDirty(ni))
goto done;
int nr, i, j;
BOOL is_dirty = FALSE;
+ BUG_ON(!PageLocked(page));
+ BUG_ON(PageWriteback(page));
BUG_ON(mft_vi != vol->mft_ino);
/* The first mft record number in the page. */
mft_no = page->index << (PAGE_CACHE_SHIFT - vol->mft_record_size_bits);