diff options
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 1136ce2febcc..fd3c8b5676c1 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c | |||
@@ -108,6 +108,7 @@ static noinline int create_subvol(struct btrfs_root *root, | |||
108 | inode_item->mode = cpu_to_le32(S_IFDIR | 0755); | 108 | inode_item->mode = cpu_to_le32(S_IFDIR | 0755); |
109 | 109 | ||
110 | btrfs_set_root_bytenr(&root_item, leaf->start); | 110 | btrfs_set_root_bytenr(&root_item, leaf->start); |
111 | btrfs_set_root_generation(&root_item, trans->transid); | ||
111 | btrfs_set_root_level(&root_item, 0); | 112 | btrfs_set_root_level(&root_item, 0); |
112 | btrfs_set_root_refs(&root_item, 1); | 113 | btrfs_set_root_refs(&root_item, 1); |
113 | btrfs_set_root_used(&root_item, 0); | 114 | btrfs_set_root_used(&root_item, 0); |