* [PATCH] Btrfs-progs: move crc32c optimization init
@ 2013-02-12 19:39 Ilya Dryomov
0 siblings, 0 replies; only message in thread
From: Ilya Dryomov @ 2013-02-12 19:39 UTC (permalink / raw)
To: linux-btrfs; +Cc: idryomov
Don't call crc32c_optimization_init() until we know that a command is
actually going to be invoked.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
---
btrfs.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/btrfs.c b/btrfs.c
index 687acec..7752bd6 100644
--- a/btrfs.c
+++ b/btrfs.c
@@ -261,8 +261,6 @@ int main(int argc, char **argv)
{
const struct cmd_struct *cmd;
- crc32c_optimization_init();
-
argc--;
argv++;
handle_options(&argc, &argv);
@@ -278,6 +276,8 @@ int main(int argc, char **argv)
handle_help_options_next_level(cmd, argc, argv);
+ crc32c_optimization_init();
+
fixup_argv0(argv, cmd->token);
exit(cmd->fn(argc, argv));
}
--
1.7.9.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-02-12 19:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-12 19:39 [PATCH] Btrfs-progs: move crc32c optimization init Ilya Dryomov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).