Message ID | d8a5ee9219d8a61072ad322e5dbdf44054b4bb8d.1646348486.git.osandov@fb.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | btrfs: inode creation cleanups and fixes | expand |
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index b7d54b0b2fb5..a9dabe9e5500 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -8784,7 +8784,6 @@ int btrfs_create_subvol_root(struct btrfs_trans_handle *trans, inode->i_op = &btrfs_dir_inode_operations; inode->i_fop = &btrfs_dir_file_operations; - set_nlink(inode, 1); unlock_new_inode(inode); err = btrfs_subvol_inherit_props(trans, new_root, parent_root);