Skip to content

Commit

Permalink
Btrfs: use 'u64' rather than 'int' to get extent's generation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wang Shilong authored and Chris Mason committed Nov 12, 2013
1 parent 9dced18 commit 7fdf4b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/btrfs/relocation.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 7fdf4b6

Please sign in to comment.