/* This function returns %0 on success and a negative error code on failure.  */
static int make_pnode_dirty(struct ubifs_info *c, int node_num, int lnum, int offs)
/* This function returns %0 on success and a negative error code on failure.  */
static int make_pnode_dirty(struct ubifs_info *c, int node_num, int lnum, int offs)
{
	struct ubifs_pnode *pnode;
	struct ubifs_nbranch *branch;
	pnode = pnode_lookup(c, node_num);
	if (IS_ERR(pnode))
		return PTR_ERR(pnode);
	branch = &pnode->parent->nbranch[pnode->iip];
	if (branch->lnum != lnum || branch->offs != offs)
		return 0;
	do_make_pnode_dirty(c, pnode);
	return 0;
}