ok. Here is a much simpler patch which avoids duplication.. checked
with checkpatch which complains that there is no signed-off line only
:)

-- 
Pranith.


--- user/kernel/namei.c.orig    2008-12-06 20:10:20.000000000 +0530
+++ user/kernel/namei.c 2008-12-07 14:57:12.000000000 +0530
@@ -43,6 +43,11 @@ error:
        return err;
 }

+static int tux3_mkdir(struct inode *dir, struct dentry *dentry, int mode)
+{
+       return tux3_create(dir, dentry, S_IFDIR | mode, NULL);
+}
+
 const struct file_operations tux_dir_fops = {
        .llseek         = generic_file_llseek,
        .read           = generic_read_dir,
@@ -55,7 +60,7 @@ const struct inode_operations tux_dir_io
 //     .link           = ext3_link,
 //     .unlink         = ext3_unlink,
 //     .symlink        = ext3_symlink,
-//     .mkdir          = ext3_mkdir,
+       .mkdir          = tux3_mkdir,
 //     .rmdir          = ext3_rmdir,
 //     .mknod          = ext3_mknod,
 //     .rename         = ext3_rename,

_______________________________________________
Tux3 mailing list
[email protected]
http://mailman.tux3.org/cgi-bin/mailman/listinfo/tux3

Reply via email to