kernels/linux-2.4.0/fs/jffs/intrep.c
/* Free all nodes associated with a file.  */
Free all nodes associated with a file.
Free all nodes associated with a file .
int
jffs_free_node_list(struct jffs_file *f)
{
	struct jffs_node *node;
	struct jffs_node *p;
	D3(printk("jffs_free_node_list(): f #%u, \"%s\"\n",
		  f->ino, (f->name ? f->name : "")));
	node = f->version_head;
	while (node) {
		p = node;
		node = node->version_next;
		kfree(p);
		DJM(no_jffs_node--);
	}
	return 0;
}
int jffs_free_node_list ( struct jffs_file * f ) { struct jffs_node * node ; struct jffs_node * p ; D3 ( printk ( " \" \" \n " , f -> ino , ( f -> name ? f -> name : " " ) ) ) ; node = f -> version_head ; while ( node ) { p = node ; node = node -> version_next ; kfree ( p ) ; DJM ( no_jffs_node -- ) ; } return 0 ; }
Free all nodes associated with a file.
Free all nodes associated with a file .