diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2011-08-05 05:32:37 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2011-08-16 21:09:31 -0400 |
commit | 0e588859618be54ec100373f1b86296271ce5307 (patch) | |
tree | 2973fd20d872d30f9dfe6369b570239a4a1233fd /fs | |
parent | bb3ac5a4dfc8eeb881206c77d9f925e320d9c41a (diff) |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/volumes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 46f9a208723d..f2a4cc79da61 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c | |||
@@ -142,7 +142,7 @@ static noinline int run_scheduled_bios(struct btrfs_device *device) | |||
142 | unsigned long limit; | 142 | unsigned long limit; |
143 | unsigned long last_waited = 0; | 143 | unsigned long last_waited = 0; |
144 | int force_reg = 0; | 144 | int force_reg = 0; |
145 | int sync_pending; | 145 | int sync_pending = 0; |
146 | struct blk_plug plug; | 146 | struct blk_plug plug; |
147 | 147 | ||
148 | /* | 148 | /* |