err = -EXDEV;
goto error2;
}
- err = old->p_base->pb_ino->i_ops.inop_link(old, new);
+ /*
+ * Use the parent node operations to request the task in case the
+ * driver is implemented using differentiated inode operations based
+ * on file type, such as incore does.
+ */
+ err = old->p_parent->p_base->pb_ino->i_ops.inop_link(old, new);
if (err)
goto error2;
/*