aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/btrfs/inode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 2e3918e6049e..483eea69b0a6 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -1095,6 +1095,7 @@ static int btrfs_mknod(struct inode *dir, struct dentry *dentry,
1095 else { 1095 else {
1096 inode->i_op = &btrfs_special_inode_operations; 1096 inode->i_op = &btrfs_special_inode_operations;
1097 init_special_inode(inode, inode->i_mode, rdev); 1097 init_special_inode(inode, inode->i_mode, rdev);
1098 btrfs_update_inode(trans, root, inode);
1098 } 1099 }
1099 dir->i_sb->s_dirt = 1; 1100 dir->i_sb->s_dirt = 1;
1100 btrfs_update_inode_block_group(trans, inode); 1101 btrfs_update_inode_block_group(trans, inode);