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: [email protected] Signed-off-by: Damien Le Moal <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Reviewed-by: Himanshu Madhani <[email protected]>
1 parent d7e673c commit 88b1700

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)