Whamcloud - gitweb
b=16074
authorgreen <green>
Thu, 13 Nov 2008 00:42:02 +0000 (00:42 +0000)
committergreen <green>
Thu, 13 Nov 2008 00:42:02 +0000 (00:42 +0000)
r=adilger, Lee Ward

Do not get extra reference on source inode since we already hold the reference
from previous name.

libsysio/src/rename.c

index c0f4967..05606ca 100644 (file)
@@ -176,7 +176,6 @@ SYSIO_INTERFACE_NAME(rename)(const char *oldpath, const char *newpath)
                I_GONE(new->p_base->pb_ino);
        new->p_base->pb_ino = old->p_base->pb_ino;
        old->p_base->pb_ino = NULL;
-       I_REF(new->p_base->pb_ino);
 
 short_out:
 error1: