summaryrefslogtreecommitdiffstats
path: root/fs/zonefs/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/zonefs/file.c')
-rw-r--r--fs/zonefs/file.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/zonefs/file.c b/fs/zonefs/file.c
index 1451e7b48669..92c9aaae3663 100644
--- a/fs/zonefs/file.c
+++ b/fs/zonefs/file.c
@@ -644,9 +644,7 @@ static ssize_t zonefs_file_buffered_write(struct kiocb *iocb,
goto inode_unlock;
ret = iomap_file_buffered_write(iocb, from, &zonefs_write_iomap_ops);
- if (ret > 0)
- iocb->ki_pos += ret;
- else if (ret == -EIO)
+ if (ret == -EIO)
zonefs_io_error(inode, true);
inode_unlock: