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:
@@ -678,6 +678,7 @@ static int btrfs_batch_insert_items(struct btrfs_trans_handle *trans,
|
|||||||
INIT_LIST_HEAD(&head);
|
INIT_LIST_HEAD(&head);
|
||||||
|
|
||||||
next = item;
|
next = item;
|
||||||
|
nitems = 0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* count the number of the continuous items that we can insert in batch
|
* count the number of the continuous items that we can insert in batch
|
||||||
|
Reference in New Issue
Block a user