/* dbg_is_node_dirty - determine if a node is dirty.  */
static int dbg_is_node_dirty(struct ubifs_info *c, int node_type, int lnum, int offs)
/* dbg_is_node_dirty - determine if a node is dirty.  */
static int dbg_is_node_dirty(struct ubifs_info *c, int node_type, int lnum, int offs)
{
	switch (node_type) {
	case UBIFS_LPT_NNODE:
		return dbg_is_nnode_dirty(c, lnum, offs);
	case UBIFS_LPT_PNODE:
		return dbg_is_pnode_dirty(c, lnum, offs);
	case UBIFS_LPT_LTAB:
		return dbg_is_ltab_dirty(c, lnum, offs);
	case UBIFS_LPT_LSAVE:
		return dbg_is_lsave_dirty(c, lnum, offs);
	}
	return 1;
}