提交 17aca1c9 编写于 作者: C Chris Mason

Btrfs: fix uninit variable in the delayed inode code

The nitems counter needs to start at zero
Signed-off-by: NChris Mason <chris.mason@oracle.com>
上级 1bc87793
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册