projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5956f75
)
Btrfs-progs: move crc32c optimization init
author
Ilya Dryomov
<idryomov@gmail.com>
Tue, 12 Feb 2013 19:24:50 +0000
(21:24 +0200)
committer
David Sterba
<dsterba@suse.cz>
Tue, 12 Feb 2013 21:55:26 +0000
(22:55 +0100)
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
patch
|
blob
|
history
diff --git
a/btrfs.c
b/btrfs.c
index 1852a21760a6e6f4467515b5c785377f6beee683..062bc5150e03ce9bc588a65a2110dd74c579cb18 100644
(file)
--- a/
btrfs.c
+++ b/
btrfs.c
@@
-263,8
+263,6
@@
int main(int argc, char **argv)
{
const struct cmd_struct *cmd;
- crc32c_optimization_init();
-
argc--;
argv++;
handle_options(&argc, &argv);
@@
-280,6
+278,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));
}