Skip to content

Commit

Permalink
Btrfs: fix uninit variable in the delayed inode code
Browse files Browse the repository at this point in the history
The nitems counter needs to start at zero

Signed-off-by: Chris Mason <chris.mason@oracle.com>
  • Loading branch information
Chris Mason committed Jun 4, 2011
1 parent 1bc8779 commit 17aca1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/btrfs/delayed-inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 17aca1c

Please sign in to comment.