Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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