Without a sync there might still be temporary blocks in i_blocks like
indirect block reservations or additional blocks reserved for out of
place writes.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
echo "Could not create 4G test file"
fi
+# make sure indirect block reservations and other temporary block reservations
+# are released before sampling i_blocks
+sync $junk_file
+
iblocks=`stat -c '%b' $junk_file`
_test_cycle_mount