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 <zab@versity.com>
This commit is contained in:
Zach Brown
2017-06-06 14:30:43 -07:00
parent 2bd698b604
commit 79de18443b

View File

@@ -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;