fsx: disable allocsp_calls if -F is specified
authorZorro Lang <zlang@redhat.com>
Sat, 29 Jan 2022 04:44:31 +0000 (12:44 +0800)
committerEryu Guan <guaneryu@gmail.com>
Sun, 13 Feb 2022 17:10:47 +0000 (01:10 +0800)
commitcd99a4999bfb273319b6494c8e9497b063684059
treef68877957528a9468816ffba1fc65e703dc7a054
parent394c20991779de09e6fb1b60aa5c9eab1dfc9549
fsx: disable allocsp_calls if -F is specified

As the fsx.c source code says:
  int     fallocate_calls = 1;            /* -F flag disables */
  int     allocsp_calls = 1;              /* -F flag disables */

The allocsp_calls and fallocate_calls should be disabled, if the -F
option is specified. But current fsx forgets to disable allocsp_calls
as is documented.

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