Btrfs: Fix mknod to properly send rdev info back to disk
authorYan <yanzheng@21cn.com>
Wed, 29 Aug 2007 13:11:44 +0000 (09:11 -0400)
committerDavid Woodhouse <dwmw2@hera.kernel.org>
Wed, 29 Aug 2007 13:11:44 +0000 (09:11 -0400)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/inode.c

index 2e3918e6049eb133c548d241536e38b447d61553..483eea69b0a6fabeffffc5f8d609bcc8bd0ad3b1 100644 (file)
@@ -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);