zonefs: Fix error message in zonefs_file_dio_append()
authorDamien Le Moal <damien.lemoal@opensource.wdc.com>
Mon, 20 Mar 2023 13:49:15 +0000 (22:49 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Apr 2023 10:10:34 +0000 (12:10 +0200)
commitfc426026c3a3bd939f1ebae31f880ecf2724cc74
treed9885de93c2d523f4f3edc73cdbb6d1581f37c61
parent81cf745f110557673c8c7f0263bd8c30165bd07b
zonefs: Fix error message in zonefs_file_dio_append()

[ Upstream commit 88b170088ad2c3e27086fe35769aa49f8a512564 ]

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: a608da3bd730 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/zonefs/file.c