mirror of
https://github.com/versity/scoutfs.git
synced 2026-02-08 03:30:46 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user