Btrfs: fix uninitialized sync_pending
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>
This commit is contained in:
parent
bb3ac5a4df
commit
0e58885961
|
@ -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;
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue