[Btrfs-devel] give me some works

Yan Zheng yanzheng at 21cn.com
Thu Aug 23 06:55:23 PDT 2007


2007/8/23, Chris Mason <chris.mason at oracle.com>:
> For starters I'd love to see a fix to the mknod bug you found ;) There
> are lots of things to do, so I'm sure we can find a bunch of projects.
> -chris
>

here is the patch, it's simple but btrfs_update_inode has a litter
overhead(I don't think you will care that ;).

--- a/inode.c   Fri Aug 10 16:22:09 2007 -0400
+++ b/inode.c   Thu Aug 23 21:34:28 2007 +0800
@@ -1045,6 +1045,7 @@ static int btrfs_mknod(struct inode *dir
        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);

Regards

YZ



More information about the Btrfs-devel mailing list