Merge branch 'xfs-misc-fixes-for-3.18-3' into for-next

This commit is contained in:
Dave Chinner
2014-10-13 10:22:45 +11:00
16 changed files with 57 additions and 61 deletions

View File

@@ -560,6 +560,13 @@ xfs_cancel_ioend(
do {
next_bh = bh->b_private;
clear_buffer_async_write(bh);
/*
* The unwritten flag is cleared when added to the
* ioend. We're not submitting for I/O so mark the
* buffer unwritten again for next time around.
*/
if (ioend->io_type == XFS_IO_UNWRITTEN)
set_buffer_unwritten(bh);
unlock_buffer(bh);
} while ((bh = next_bh) != NULL);