kernels/linux-2.4.0/fs/jffs/intrep.c
/* Unlink a jffs_node from the version list it is in.  */
Unlink a jffs_node from the version list it is in.
Unlink a jffs_node from the version list it is in .
static inline void
jffs_unlink_node_from_version_list(struct jffs_file *f,
				   struct jffs_node *node)
{
	if (node->version_prev) {
		node->version_prev->version_next = node->version_next;
	} else {
		f->version_head = node->version_next;
	}
	if (node->version_next) {
		node->version_next->version_prev = node->version_prev;
	} else {
		f->version_tail = node->version_prev;
	}
}
static inline void jffs_unlink_node_from_version_list ( struct jffs_file * f , struct jffs_node * node ) { if ( node -> version_prev ) { node -> version_prev -> version_next = node -> version_next ; } else { f -> version_head = node -> version_next ; } if ( node -> version_next ) { node -> version_next -> version_prev = node -> version_prev ; } else { f -> version_tail = node -> version_prev ; } }
Unlink a jffs_node from the version list it is in.
Unlink a jffs_node from the version list it is in .