/* This function returns %0 on success and a negative error code on failure.  */
static int make_tree_dirty(struct ubifs_info *c)
/* This function returns %0 on success and a negative error code on failure.  */
static int make_tree_dirty(struct ubifs_info *c)
{
	struct ubifs_pnode *pnode;
	pnode = pnode_lookup(c, 0);
	if (IS_ERR(pnode))
		return PTR_ERR(pnode);
	while (pnode) {
		do_make_pnode_dirty(c, pnode);
		pnode = next_pnode_to_dirty(c, pnode);
		if (IS_ERR(pnode))
			return PTR_ERR(pnode);
	}
	return 0;
}