Commit 2cb8457e authored by Anton Altaparmakov's avatar Anton Altaparmakov

NTFS: Fix silly bug in ntfs_write_block(). iblock and dblock have

different semantics so the check was bogus. Compare the byte sizes
instead.
parent aa46268c
......@@ -560,7 +560,8 @@ static int ntfs_write_block(struct page *page)
continue;
/* Make sure we have enough initialized size. */
if (unlikely((block >= iblock) && (iblock < dblock))) {
if (unlikely((block >= iblock) &&
(ni->initialized_size < vi->i_size))) {
/*
* If this page is fully outside initialized size, zero
* out all pages between the current initialized size
......
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