summaryrefslogtreecommitdiffstats
path: root/block/blk-lib.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2013-06-06 11:40:37 -0400
committerTheodore Ts'o <tytso@mit.edu>2013-06-06 11:40:37 -0400
commitf4afb4f4e3e9af626ad695c87e4f9aaa780b29ec (patch)
tree4f675c6ecaa15df61e842e89dbcacd33d90974c2 /block/blk-lib.c
parent2f2e09eb15849562aede80ed007658e4504ded26 (diff)
ext4: optimize test_root()
The test_root() function could potentially loop forever due to overflow issues. So rewrite test_root() to avoid this issue; as a bonus, it is 38% faster when benchmarked via a test loop: int main(int argc, char **argv) { int i; for (i = 0; i < 1 << 24; i++) { if (test_root(i, 7)) printf("%d\n", i); } } Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'block/blk-lib.c')
0 files changed, 0 insertions, 0 deletions