Commit 0e588859 authored by Miao Xie's avatar Miao Xie Committed by Chris Mason

Btrfs: fix uninitialized sync_pending

sync_pending is uninitialized before it be used, fix it.
Signed-off-by: default avatarMiao Xie <miaox@cn.fujitsu.com>
Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent bb3ac5a4
......@@ -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;
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment