fsx: fix backwards parameters in complaint about overly long copy
authorDarrick J. Wong <djwong@kernel.org>
Wed, 12 May 2021 02:02:19 +0000 (19:02 -0700)
committerEryu Guan <guaneryu@gmail.com>
Sun, 16 May 2021 15:55:46 +0000 (23:55 +0800)
commitd80489e7d5881d7c70fefa9a5dc1cd1e15806107
tree19396ffb935603a8e3eaac7ef91b1bfe4c9d4d3d
parent0df636ef78dc9cfa2df25c66b84c10aa6495ba4c
fsx: fix backwards parameters in complaint about overly long copy

If fsx encounters a situation where copy_file_range reports that it
copied more than it was asked to, we report this as a failure.
Unfortunately, the parameters to the print function are backwards,
leading to this bogus complaint about a short copy:

do_copy_range: asked 28672, copied 24576??

When we really asked to copy 24k but 28k was copied instead.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
ltp/fsx.c