Commit 1b4ab1bb authored by Yan's avatar Yan Committed by David Woodhouse

Btrfs: Fix mknod to properly send rdev info back to disk

Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent 252c38f0
......@@ -1095,6 +1095,7 @@ static int btrfs_mknod(struct inode *dir, struct dentry *dentry,
else {
inode->i_op = &btrfs_special_inode_operations;
init_special_inode(inode, inode->i_mode, rdev);
btrfs_update_inode(trans, root, inode);
}
dir->i_sb->s_dirt = 1;
btrfs_update_inode_block_group(trans, inode);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment