Skip to content

Commit

Permalink
Btrfs: don't memset new tokens
Browse files Browse the repository at this point in the history
Our token logic depends on token->kaddr being set, and if it is not it sets
everything properly as needed.  So instead of memsetting just set
token->kaddr to NULL.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
  • Loading branch information
Josef Bacik authored and Chris Mason committed Dec 17, 2012
1 parent ed7b63e commit ad91455
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/btrfs/ctree.h
Original file line number Diff line number Diff line change
Expand Up @@ -1860,7 +1860,7 @@ struct btrfs_map_token {

static inline void btrfs_init_map_token (struct btrfs_map_token *token)
{
memset(token, 0, sizeof(*token));
token->kaddr = NULL;
}

/* some macros to generate set/get funcs for the struct fields. This
Expand Down

0 comments on commit ad91455

Please sign in to comment.