Skip to content

Commit 88b1700

Browse files
author
Damien Le Moal
committed
zonefs: Fix error message in zonefs_file_dio_append()
Since the expected write location in a sequential file is always at the end of the file (append write), when an invalid write append location is detected in zonefs_file_dio_append(), print the invalid written location instead of the expected write location. Fixes: a608da3 ("zonefs: Detect append writes at invalid locations") Cc: stable@vger.kernel.org Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
1 parent d7e673c commit 88b1700

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/zonefs/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ static ssize_t zonefs_file_dio_append(struct kiocb *iocb, struct iov_iter *from)
426426
if (bio->bi_iter.bi_sector != wpsector) {
427427
zonefs_warn(inode->i_sb,
428428
"Corrupted write pointer %llu for zone at %llu\n",
429-
wpsector, z->z_sector);
429+
bio->bi_iter.bi_sector, z->z_sector);
430430
ret = -EIO;
431431
}
432432
}

0 commit comments

Comments
 (0)