Btrfs: use 'u64' rather than 'int' to get extent's generation
authorWang Shilong <wangsl.fnst@cn.fujitsu.com>
Fri, 25 Oct 2013 10:52:08 +0000 (18:52 +0800)
committerChris Mason <chris.mason@fusionio.com>
Tue, 12 Nov 2013 03:10:06 +0000 (22:10 -0500)
We define a 'int' to get extent's generation by mistake,fix it.

Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/relocation.c

index 92eb4832ff86fb189161d37943d88dfe9d593190..a5f6a8061b21c8b3e84e26ec14606c02d561640b 100644 (file)
@@ -3263,7 +3263,7 @@ static int add_tree_block(struct reloc_control *rc,
        struct rb_node *rb_node;
        u32 item_size;
        int level = -1;
-       int generation;
+       u64 generation;
 
        eb =  path->nodes[0];
        item_size = btrfs_item_size_nr(eb, path->slots[0]);