Whamcloud - gitweb
LU-2642 quota: update quota APIs
[fs/lustre-release.git] / libsysio / src / link.c
index bf0907b..638bd7e 100644 (file)
@@ -84,7 +84,12 @@ SYSIO_INTERFACE_NAME(link)(const char *oldpath, const char *newpath)
                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;
        /*