diff options
Diffstat (limited to 'fs/coda/dir.c')
-rw-r--r-- | fs/coda/dir.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/coda/dir.c b/fs/coda/dir.c index 8651ea6a23b7..0102b28a15fb 100644 --- a/fs/coda/dir.c +++ b/fs/coda/dir.c | |||
@@ -304,7 +304,7 @@ static int coda_link(struct dentry *source_de, struct inode *dir_inode, | |||
304 | coda_dir_changed(dir_inode, 0); | 304 | coda_dir_changed(dir_inode, 0); |
305 | atomic_inc(&inode->i_count); | 305 | atomic_inc(&inode->i_count); |
306 | d_instantiate(de, inode); | 306 | d_instantiate(de, inode); |
307 | inode->i_nlink++; | 307 | inc_nlink(inode); |
308 | 308 | ||
309 | out: | 309 | out: |
310 | unlock_kernel(); | 310 | unlock_kernel(); |
@@ -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 | ||