diff options
author | Yan <yanzheng@21cn.com> | 2007-08-29 09:11:44 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-08-29 09:11:44 -0400 |
commit | 1b4ab1bb4bbd3045cd041259c30b826654599e96 (patch) | |
tree | c901e8e80d85fd4c548a2060b8b8c03c1508cdc0 /fs/btrfs/inode.c | |
parent | 252c38f0697b6889c03542fa3c96143d3db4d9d8 (diff) |
Btrfs: Fix mknod to properly send rdev info back to disk
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 1 |
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); |