aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fusionio.com>2012-10-15 13:39:33 -0400
committerChris Mason <chris.mason@fusionio.com>2012-12-16 20:46:25 -0500
commitad9145596986b672d8c8235c92ed5307f82d045d (patch)
treebd9c8421b6bb1d2cc40d35d8d9b0aaf6766fc224 /fs/btrfs/ctree.h
parented7b63eb8afd0bb8d978a23184d70c105b54aa26 (diff)
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.h2
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 {
1860 1860
1861static inline void btrfs_init_map_token (struct btrfs_map_token *token) 1861static inline void btrfs_init_map_token (struct btrfs_map_token *token)
1862{ 1862{
1863 memset(token, 0, sizeof(*token)); 1863 token->kaddr = NULL;
1864} 1864}
1865 1865
1866/* some macros to generate set/get funcs for the struct fields. This 1866/* some macros to generate set/get funcs for the struct fields. This