Skip to content

Commit

Permalink
Btrfs: fix uninitialized sync_pending
Browse files Browse the repository at this point in the history
sync_pending is uninitialized before it be used, fix it.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
  • Loading branch information
Miao Xie authored and Chris Mason committed Aug 17, 2011
1 parent bb3ac5a commit 0e58885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/btrfs/volumes.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ static noinline int run_scheduled_bios(struct btrfs_device *device)
unsigned long limit;
unsigned long last_waited = 0;
int force_reg = 0;
int sync_pending;
int sync_pending = 0;
struct blk_plug plug;

/*
Expand Down

0 comments on commit 0e58885

Please sign in to comment.