From 79de18443b022df9a35ca24184dee6892929f134 Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Tue, 6 Jun 2017 14:30:43 -0700 Subject: [PATCH] scoutfs: don't extend key in dec_cur_len A copy and paste bug had us extending the length of keys that were decremented at their previous length. The whole point of the _cur_len functions is that they don't have to extend the key buf out to full precision. Signed-off-by: Zach Brown --- kmod/src/key.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kmod/src/key.c b/kmod/src/key.c index 584fa2fb..5b33d637 100644 --- a/kmod/src/key.c +++ b/kmod/src/key.c @@ -93,8 +93,6 @@ void scoutfs_key_dec_cur_len(struct scoutfs_key_buf *key) u8 *bytes = key->data; int i; - extend_zeros(key); - for (i = key->key_len - 1; i >= 0; i--) { if (--bytes[i] != 255) break;