Whamcloud - gitweb
Fix comments, add declaration for simple_mknod().
authoradilger <adilger>
Thu, 19 Sep 2002 22:32:37 +0000 (22:32 +0000)
committeradilger <adilger>
Thu, 19 Sep 2002 22:32:37 +0000 (22:32 +0000)
lustre/include/linux/lustre_lib.h
lustre/lib/simple.c

index d3012a8..56a7eb5 100644 (file)
@@ -103,6 +103,7 @@ struct obd_run_ctxt;
 void push_ctxt(struct obd_run_ctxt *save, struct obd_run_ctxt *new);
 void pop_ctxt(struct obd_run_ctxt *saved);
 struct dentry *simple_mkdir(struct dentry *dir, char *name, int mode);
+struct dentry *simple_mknod(struct dentry *dir, char *name, int mode);
 int lustre_fread(struct file *file, char *str, int len, loff_t *off);
 int lustre_fwrite(struct file *file, const char *str, int len, loff_t *off);
 int lustre_fsync(struct file *file);
index 91f3f2a..9827eea 100644 (file)
@@ -77,15 +77,15 @@ void pop_ctxt(struct obd_run_ctxt *saved)
         //printk("pc6\n");
 }
 
-/* utility to make a directory */
+/* utility to make a file */
 struct dentry *simple_mknod(struct dentry *dir, char *name, int mode)
 {
         struct dentry *dchild;
         int err = 0;
         ENTRY;
 
-        ASSERT_KERNEL_CTXT("kernel doing mkdir outside kernel context\n");
-        CDEBUG(D_INODE, "creating directory %*s\n", (int)strlen(name), name);
+        ASSERT_KERNEL_CTXT("kernel doing mknod outside kernel context\n");
+        CDEBUG(D_INODE, "creating file %*s\n", (int)strlen(name), name);
         down(&dir->d_inode->i_sem);
         dchild = lookup_one_len(name, dir, strlen(name));
         if (IS_ERR(dchild))