[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: new-inode ?




james@xxxxxxx.com said:

Q: I can't find any symbol or function named 'new_inode' what's wrong??
A: I'm using kernel version 2.4.0-test8-rmk5-np2 . 

--- /home/dwmw2/working/mtd-2.4/fs/jffs/inode-v23.c	Thu Jan 11 08:55:11 2001
+++ inode-v23.c	Thu Jan 11 09:05:55 2001
@@ -328,15 +328,17 @@
 	struct jffs_control *c;
 	struct jffs_file *f;
 
-	sb = dir->i_sb;
-	inode = new_inode(sb);
+	inode = get_empty_inode();
 	if (!inode) {
 		*err = -ENOMEM;
 		return NULL;
 	}
 
+	sb = dir->i_sb;
 	c = (struct jffs_control *)sb->u.generic_sbp;
 
+	inode->i_sb = sb;
+	inode->i_dev = sb->s_dev;
 	inode->i_ino = raw_inode->ino;
 	inode->i_mode = raw_inode->mode;
 	inode->i_nlink = raw_inode->nlink;
--- /home/dwmw2/working/mtd-2.4/fs/jffs/intrep.c	Thu Jan 11 08:55:11 2001
+++ intrep.c	Thu Jan 11 10:41:26 2001
@@ -3055,7 +3055,8 @@
 				D1(printk("jffs_garbage_collect_thread(): SIGKILL received.\n"));
 				c->gc_task = NULL;
 				unlock_kernel();
-				up_and_exit(&c->gc_thread_sem, 0);
+				up(&c->gc_thread_sem);
+				do_exit(0);
 			}
 		}
 


--
dwmw2



To unsubscribe from this list: send the line "unsubscribe jffs-dev" in
the body of a message to majordomo@xxxxxxx.com