Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61619
b: refs/heads/master
c: 8c6d215
h: refs/heads/master
i:
  61617: a4e67fa
  61615: b7bdd25
v: v3
  • Loading branch information
Jan Harkes authored and Linus Torvalds committed Jul 19, 2007
1 parent 1e9474a commit 1139d10
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d728900cd5502927158db747c653007cf72e2e49
refs/heads/master: 8c6d21528406ec719aaea9d589876fd105c31646
23 changes: 9 additions & 14 deletions trunk/fs/coda/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,28 +391,23 @@ int coda_rmdir(struct inode *dir, struct dentry *de)
{
const char *name = de->d_name.name;
int len = de->d_name.len;
int error;
int error;

lock_kernel();
coda_vfs_stat.rmdir++;

if (!d_unhashed(de)) {
unlock_kernel();
return -EBUSY;
}
error = venus_rmdir(dir->i_sb, coda_i2f(dir), name, len);
if (!error) {
/* VFS may delete the child */
if (de->d_inode)
de->d_inode->i_nlink = 0;

if ( error ) {
unlock_kernel();
return error;
/* fix the link count of the parent */
coda_dir_drop_nlink(dir);
coda_dir_update_mtime(dir);
}

coda_dir_drop_nlink(dir);
coda_dir_update_mtime(dir);
drop_nlink(de->d_inode);
d_delete(de);
unlock_kernel();
return 0;
return error;
}

/* rename */
Expand Down

0 comments on commit 1139d10

Please sign in to comment.