提交 0e588859 编写于 作者: M Miao Xie 提交者: Chris Mason

Btrfs: fix uninitialized sync_pending

sync_pending is uninitialized before it be used, fix it.
Signed-off-by: NMiao Xie <miaox@cn.fujitsu.com>
Signed-off-by: NChris Mason <chris.mason@oracle.com>
上级 bb3ac5a4
...@@ -142,7 +142,7 @@ static noinline int run_scheduled_bios(struct btrfs_device *device) ...@@ -142,7 +142,7 @@ static noinline int run_scheduled_bios(struct btrfs_device *device)
unsigned long limit; unsigned long limit;
unsigned long last_waited = 0; unsigned long last_waited = 0;
int force_reg = 0; int force_reg = 0;
int sync_pending; int sync_pending = 0;
struct blk_plug plug; struct blk_plug plug;
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册