generic/544: fix inode number ordering code
authorKent Overstreet <kent.overstreet@gmail.com>
Sat, 13 Nov 2021 21:00:03 +0000 (16:00 -0500)
committerEryu Guan <guaneryu@gmail.com>
Sun, 21 Nov 2021 13:22:57 +0000 (21:22 +0800)
commit79d84cdcd4740243daa54bfb004514c292e81502
treee9eaa922ca325ce6781096fe72b5a151722896fa
parent9f8f0e4d5ae00990bac05fbd69a882255bf7bf9f
generic/544: fix inode number ordering code

The code that creates files and moves them to low/high inode number
files writes different file contents before doing the move - leading to
non-reproducible results.

Fix this by writing the file contents after moving them to high/low
inode number files.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/544