patch-2.1.109 linux/fs/coda/pioctl.c

Next file: linux/fs/coda/psdev.c
Previous file: linux/fs/coda/inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.108/linux/fs/coda/pioctl.c linux/fs/coda/pioctl.c
@@ -123,7 +123,7 @@
 	        target_de = lnamei(data.path);
 	}
 		
-	if ( PTR_ERR(target_de) == -ENOENT ) {
+	if ( IS_ERR(target_de) ) {
                 CDEBUG(D_PIOCTL, "error: lookup fails.\n");
 		return PTR_ERR(target_de);
         } else {
@@ -142,12 +142,12 @@
 
 	/* now proceed to make the upcall */
         cnp = ITOC(target_inode);
-        CHECK_CNODE(cnp);
 
 	error = venus_pioctl(inode->i_sb, &(cnp->c_fid), cmd, &data);
 
         CDEBUG(D_PIOCTL, "ioctl on inode %ld\n", target_inode->i_ino);
-
+	CDEBUG(D_DOWNCALL, "dput on ino: %ld, icount %d, dcount %d\n", target_inode->i_ino, 
+	       target_inode->i_count, target_de->d_count);
         if ( target_de ) 
 	        dput(target_de);
         return error;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov