diff --git a/[refs] b/[refs] index 2a6d4630c27c..29fa59d65bad 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 8a3344269465b26761b74493cfbeeaa75d821614 +refs/heads/master: 12fc9d0923ca70ae8960bccebac09d5c12f8c4d4 diff --git a/trunk/fs/btrfs/inode.c b/trunk/fs/btrfs/inode.c index bf392e532617..6e0ee9b0d742 100644 --- a/trunk/fs/btrfs/inode.c +++ b/trunk/fs/btrfs/inode.c @@ -6706,8 +6706,10 @@ int btrfs_create_subvol_root(struct btrfs_trans_handle *trans, int err; u64 index = 0; - inode = btrfs_new_inode(trans, new_root, NULL, "..", 2, new_dirid, - new_dirid, S_IFDIR | 0700, &index); + inode = btrfs_new_inode(trans, new_root, NULL, "..", 2, + new_dirid, new_dirid, + S_IFDIR | (~current_umask() & S_IRWXUGO), + &index); if (IS_ERR(inode)) return PTR_ERR(inode); inode->i_op = &btrfs_dir_inode_operations;