]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
Revert "xfs: return errors from partial I/O failures to files"
authorChuck Anderson <chuck.anderson@oracle.com>
Sat, 19 Mar 2016 19:37:44 +0000 (12:37 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Sat, 19 Mar 2016 19:37:44 +0000 (12:37 -0700)
This reverts commit 2e58ec0b4619ce115b9ae952259697a76b0e528c.
It will be replaced by an updated commit.

Signed-off-by: Chuck Anderson <chuck.anderson@oracle.com>
fs/xfs/xfs_aops.c

index 75d7fd657948ee3282be8aefe59fef8a5a6f0273..095f94c2d8b564a46d3c48636fb0532e6b10a658 100644 (file)
@@ -355,10 +355,8 @@ xfs_end_bio(
        int                     error)
 {
        xfs_ioend_t             *ioend = bio->bi_private;
-       ASSERT(atomic_read(&bio->bi_cnt) >= 1);
 
-       if (!ioend->io_error && !test_bit(BIO_UPTODATE, &bio->bi_flags))
-               ioend->io_error = error;
+       ioend->io_error = test_bit(BIO_UPTODATE, &bio->bi_flags) ? 0 : error;
 
        /* Toss bio and pass work off to an xfsdatad thread */
        bio->bi_private = NULL;