From: Yan Date: Wed, 29 Aug 2007 13:11:44 +0000 (-0400) Subject: Btrfs: Fix mknod to properly send rdev info back to disk X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1b4ab1bb4bbd3045cd041259c30b826654599e96;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Btrfs: Fix mknod to properly send rdev info back to disk Signed-off-by: Chris Mason --- 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, 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);