diff options
Diffstat (limited to 'fs/btrfs')
-rw-r--r-- | fs/btrfs/delayed-inode.c | 1 | ||||
-rw-r--r-- | fs/btrfs/inode.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/delayed-inode.c b/fs/btrfs/delayed-inode.c index 21d91a8073ee..335605c8ceab 100644 --- a/fs/btrfs/delayed-inode.c +++ b/fs/btrfs/delayed-inode.c | |||
@@ -62,6 +62,7 @@ static inline void btrfs_init_delayed_node( | |||
62 | INIT_LIST_HEAD(&delayed_node->n_list); | 62 | INIT_LIST_HEAD(&delayed_node->n_list); |
63 | INIT_LIST_HEAD(&delayed_node->p_list); | 63 | INIT_LIST_HEAD(&delayed_node->p_list); |
64 | delayed_node->bytes_reserved = 0; | 64 | delayed_node->bytes_reserved = 0; |
65 | memset(&delayed_node->inode_item, 0, sizeof(delayed_node->inode_item)); | ||
65 | } | 66 | } |
66 | 67 | ||
67 | static inline int btrfs_is_continuous_delayed_item( | 68 | static inline int btrfs_is_continuous_delayed_item( |
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index ee45ebf42192..144f4642b2a9 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -4693,6 +4693,8 @@ static struct inode *btrfs_new_inode(struct btrfs_trans_handle *trans, | |||
4693 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; | 4693 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; |
4694 | inode_item = btrfs_item_ptr(path->nodes[0], path->slots[0], | 4694 | inode_item = btrfs_item_ptr(path->nodes[0], path->slots[0], |
4695 | struct btrfs_inode_item); | 4695 | struct btrfs_inode_item); |
4696 | memset_extent_buffer(path->nodes[0], 0, (unsigned long)inode_item, | ||
4697 | sizeof(*inode_item)); | ||
4696 | fill_inode_item(trans, path->nodes[0], inode_item, inode); | 4698 | fill_inode_item(trans, path->nodes[0], inode_item, inode); |
4697 | 4699 | ||
4698 | ref = btrfs_item_ptr(path->nodes[0], path->slots[0] + 1, | 4700 | ref = btrfs_item_ptr(path->nodes[0], path->slots[0] + 1, |