From: Chris Mason Date: Fri, 3 Jun 2011 05:13:45 +0000 (-0400) Subject: Btrfs: fix uninit variable in the delayed inode code X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=17aca1c987cff89dc4279371857035da902c8854;p=~shefty%2Frdma-dev.git Btrfs: fix uninit variable in the delayed inode code The nitems counter needs to start at zero Signed-off-by: Chris Mason --- diff --git a/fs/btrfs/delayed-inode.c b/fs/btrfs/delayed-inode.c index b46d94d1dea..c61c32cf0f7 100644 --- a/fs/btrfs/delayed-inode.c +++ b/fs/btrfs/delayed-inode.c @@ -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