diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/inode.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index bf392e532617..6e0ee9b0d742 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -6706,8 +6706,10 @@ int btrfs_create_subvol_root(struct btrfs_trans_handle *trans, | |||
6706 | int err; | 6706 | int err; |
6707 | u64 index = 0; | 6707 | u64 index = 0; |
6708 | 6708 | ||
6709 | inode = btrfs_new_inode(trans, new_root, NULL, "..", 2, new_dirid, | 6709 | inode = btrfs_new_inode(trans, new_root, NULL, "..", 2, |
6710 | new_dirid, S_IFDIR | 0700, &index); | 6710 | new_dirid, new_dirid, |
6711 | S_IFDIR | (~current_umask() & S_IRWXUGO), | ||
6712 | &index); | ||
6711 | if (IS_ERR(inode)) | 6713 | if (IS_ERR(inode)) |
6712 | return PTR_ERR(inode); | 6714 | return PTR_ERR(inode); |
6713 | inode->i_op = &btrfs_dir_inode_operations; | 6715 | inode->i_op = &btrfs_dir_inode_operations; |