/* This function returns %0 on success and a negative error code on failure.  */
static int make_node_dirty(struct ubifs_info *c, int node_type, int node_num, int lnum, int offs)
/* This function returns %0 on success and a negative error code on failure.  */
static int make_node_dirty(struct ubifs_info *c, int node_type, int node_num, int lnum, int offs)
{
	switch (node_type) {
	case UBIFS_LPT_NNODE:
		return make_nnode_dirty(c, node_num, lnum, offs);
	case UBIFS_LPT_PNODE:
		return make_pnode_dirty(c, node_num, lnum, offs);
	case UBIFS_LPT_LTAB:
		return make_ltab_dirty(c, lnum, offs);
	case UBIFS_LPT_LSAVE:
		return make_lsave_dirty(c, lnum, offs);
	}
	return -EINVAL;
}