diff options
author | Josef Bacik <jbacik@fusionio.com> | 2012-10-15 19:39:33 +0200 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2012-12-17 02:46:25 +0100 |
commit | ad9145596986b672d8c8235c92ed5307f82d045d (patch) | |
tree | bd9c8421b6bb1d2cc40d35d8d9b0aaf6766fc224 /fs/btrfs | |
parent | Btrfs: only clear dirty on the buffer if it is marked as dirty (diff) | |
download | linux-ad9145596986b672d8c8235c92ed5307f82d045d.tar.xz linux-ad9145596986b672d8c8235c92ed5307f82d045d.zip |
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')
-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 55aff6764bb9..cd02205f13c8 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 |