summaryrefslogtreecommitdiff
path: root/libbcachefs/util.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2018-07-16 03:58:54 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2018-07-16 04:00:44 -0400
commit76a549d82d1383c02e4aa6f7d9eda2df9f2196b3 (patch)
tree99dd635807dd308586ed45677b90140e3ab60599 /libbcachefs/util.c
parent75c7148e0aff2184c75a52e7c4c58e46e715757b (diff)
Update bcachefs sources to eab3b355cf bcachefs: trace transaction restarts
Diffstat (limited to 'libbcachefs/util.c')
-rw-r--r--libbcachefs/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbcachefs/util.c b/libbcachefs/util.c
index 24c6cc56..1272ea7a 100644
--- a/libbcachefs/util.c
+++ b/libbcachefs/util.c
@@ -52,7 +52,7 @@ static int __bch2_strtoh(const char *cp, u64 *res,
cp++;
} while (isdigit(*cp));
- for (u = 1; u < ARRAY_SIZE(si_units); u++)
+ for (u = 1; u < strlen(si_units); u++)
if (*cp == si_units[u]) {
cp++;
goto got_unit;