Collapse this two-line helper into the main function since it's trivial.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
/* Phase 8: Trim filesystem. */
-/* Trim the unused areas of the filesystem if the caller asked us to. */
-static void
-trim_filesystem(
- struct scrub_ctx *ctx)
-{
- fstrim(ctx);
- progress_add(1);
-}
-
/* Trim the filesystem, if desired. */
int
phase8_func(
return 0;
maybe_trim:
- trim_filesystem(ctx);
+ fstrim(ctx);
+ progress_add(1);
return 0;
}