There was one path where we didn't.
Signed-off-by: NeilBrown <neilb@suse.de>
* If it is last on page, release page as well.
*/
- if (test_bit(B_Index, &b->flags))
+ if (test_bit(B_Index, &b->flags)) {
clear_bit(B_Writeback, &b->flags);
- else
+ lafs_io_wake(b);
+ } else
lafs_iocheck_writeback(dblk(b), 1);
-
- lafs_io_wake(b);
}
void lafs_iocheck_block(struct datablock *db, int unlock)
if (havewrite)
end_page_writeback(page);
+ if (unlock)
+ lafs_io_wake(&db->b);
}
int __must_check