xfs: drop write error injection is unfixable, remove it
[linux-2.6-microblaze.git] / fs / xfs / xfs_iomap.c
index 26ca3cc..1bdd7af 100644 (file)
@@ -1190,15 +1190,6 @@ xfs_buffered_write_iomap_end(
        struct xfs_mount        *mp = XFS_M(inode->i_sb);
        int                     error;
 
-       /*
-        * Behave as if the write failed if drop writes is enabled. Set the NEW
-        * flag to force delalloc cleanup.
-        */
-       if (XFS_TEST_ERROR(false, mp, XFS_ERRTAG_DROP_WRITES)) {
-               iomap->flags |= IOMAP_F_NEW;
-               written = 0;
-       }
-
        error = iomap_file_buffered_write_punch_delalloc(inode, iomap, offset,
                        length, written, &xfs_buffered_write_delalloc_punch);
        if (error && !xfs_is_shutdown(mp)) {