aboutsummaryrefslogtreecommitdiffstats
path: root/fs/coda/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/coda/dir.c')
-rw-r--r--fs/coda/dir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/coda/dir.c b/fs/coda/dir.c
index 8651ea6a23b7..0a2fd8bb7579 100644
--- a/fs/coda/dir.c
+++ b/fs/coda/dir.c
@@ -367,7 +367,7 @@ int coda_unlink(struct inode *dir, struct dentry *de)
367 } 367 }
368 368
369 coda_dir_changed(dir, 0); 369 coda_dir_changed(dir, 0);
370 de->d_inode->i_nlink--; 370 drop_nlink(de->d_inode);
371 unlock_kernel(); 371 unlock_kernel();
372 372
373 return 0; 373 return 0;
@@ -394,7 +394,7 @@ int coda_rmdir(struct inode *dir, struct dentry *de)
394 } 394 }
395 395
396 coda_dir_changed(dir, -1); 396 coda_dir_changed(dir, -1);
397 de->d_inode->i_nlink--; 397 drop_nlink(de->d_inode);
398 d_delete(de); 398 d_delete(de);
399 unlock_kernel(); 399 unlock_kernel();
400 400