commit | 1b4ab1bb4bbd3045cd041259c30b826654599e96 | [log] [tgz] |
---|---|---|
author | Yan <yanzheng@21cn.com> | Wed Aug 29 09:11:44 2007 -0400 |
committer | David Woodhouse <dwmw2@hera.kernel.org> | Wed Aug 29 09:11:44 2007 -0400 |
tree | c901e8e80d85fd4c548a2060b8b8c03c1508cdc0 | |
parent | 252c38f0697b6889c03542fa3c96143d3db4d9d8 [diff] |
Btrfs: Fix mknod to properly send rdev info back to disk Signed-off-by: Chris Mason <chris.mason@oracle.com>
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 2e3918e..483eea6 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c
@@ -1095,6 +1095,7 @@ 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);