diff options
Diffstat (limited to 'libbcachefs/fs-io.c')
-rw-r--r-- | libbcachefs/fs-io.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libbcachefs/fs-io.c b/libbcachefs/fs-io.c index 7d45f486..fdd43686 100644 --- a/libbcachefs/fs-io.c +++ b/libbcachefs/fs-io.c @@ -2208,6 +2208,9 @@ err: /* inode->i_dio_count is our ref on inode and thus bch_fs */ inode_dio_end(&inode->v); + if (ret < 0) + ret = bch2_err_class(ret); + if (!sync) { req->ki_complete(req, ret); ret = -EIOCBQUEUED; |