diff options
author | Josef Bacik <jbacik@fusionio.com> | 2012-10-15 17:39:33 (GMT) |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2012-12-17 01:46:25 (GMT) |
commit | ad9145596986b672d8c8235c92ed5307f82d045d (patch) | |
tree | bd9c8421b6bb1d2cc40d35d8d9b0aaf6766fc224 /fs/btrfs/ctree.h | |
parent | ed7b63eb8afd0bb8d978a23184d70c105b54aa26 (diff) | |
download | linux-ad9145596986b672d8c8235c92ed5307f82d045d.tar.xz |
Btrfs: don't memset new tokens
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>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 55aff67..cd02205 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -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 |