Commit 17aca1c9 authored by Chris Mason's avatar Chris Mason

Btrfs: fix uninit variable in the delayed inode code

The nitems counter needs to start at zero
Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent 1bc87793
...@@ -678,6 +678,7 @@ static int btrfs_batch_insert_items(struct btrfs_trans_handle *trans, ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment