Skip to content

Commit 7fdf4b6

Browse files
Wang ShilongChris Mason
authored andcommitted
Btrfs: use 'u64' rather than 'int' to get extent's generation
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>
1 parent 9dced18 commit 7fdf4b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/btrfs/relocation.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3263,7 +3263,7 @@ static int add_tree_block(struct reloc_control *rc,
32633263
struct rb_node *rb_node;
32643264
u32 item_size;
32653265
int level = -1;
3266-
int generation;
3266+
u64 generation;
32673267

32683268
eb = path->nodes[0];
32693269
item_size = btrfs_item_size_nr(eb, path->slots[0]);

0 commit comments

Comments
 (0)