summaryrefslogtreecommitdiffstats
path: root/fs/coda/pioctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/coda/pioctl.c')
-rw-r--r--fs/coda/pioctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/coda/pioctl.c b/fs/coda/pioctl.c
index 99c960f7d..aa143afcf 100644
--- a/fs/coda/pioctl.c
+++ b/fs/coda/pioctl.c
@@ -123,7 +123,7 @@ static int coda_pioctl(struct inode * inode, struct file * filp,
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 @@ static int coda_pioctl(struct inode * inode, struct file * filp,
/* 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;