summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@fusionio.com>2012-06-15 20:02:02 -0400
committerChris Mason <chris.mason@fusionio.com>2012-06-15 20:06:54 -0400
commit4325edd0786fdd3909f9550e52a963b2fe54f78b (patch)
treed32c73bace59fa695eedf647e9408c49e8f43fd5 /fs/btrfs/ctree.c
parent9c106405ddf893fcd04cd46555464417d2df8451 (diff)
downloadop-kernel-dev-4325edd0786fdd3909f9550e52a963b2fe54f78b.zip
op-kernel-dev-4325edd0786fdd3909f9550e52a963b2fe54f78b.tar.gz
Btrfs: init old_generation in get_old_root
gcc was giving an uninit variable warning here. Strictly speaking we don't need to init it, but this will make things much less error prone. Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/ctree.c')
-rw-r--r--fs/btrfs/ctree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c
index 04b06bc..15cbc2b 100644
--- a/fs/btrfs/ctree.c
+++ b/fs/btrfs/ctree.c
@@ -1175,7 +1175,7 @@ get_old_root(struct btrfs_root *root, u64 time_seq)
struct tree_mod_elem *tm;
struct extent_buffer *eb;
struct tree_mod_root *old_root = NULL;
- u64 old_generation;
+ u64 old_generation = 0;
u64 logical;
eb = btrfs_read_lock_root_node(root);
OpenPOWER on IntegriCloud