Btrfs: fix uninit variable in the delayed inode code
The nitems counter needs to start at zero Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
parent
1bc8779349
commit
17aca1c987
@ -678,6 +678,7 @@ static int btrfs_batch_insert_items(struct btrfs_trans_handle *trans,
|
||||
INIT_LIST_HEAD(&head);
|
||||
|
||||
next = item;
|
||||
nitems = 0;
|
||||
|
||||
/*
|
||||
* count the number of the continuous items that we can insert in batch
|
||||
|
Loading…
Reference in New Issue
Block a user