Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 257407
b: refs/heads/master
c: 841590c
h: refs/heads/master
i:
  257405: a0dac1c
  257403: f33f40c
  257399: a6c7d90
  257391: e1839dd
  257375: af62bae
  257343: 8efaec2
  257279: 0a5d2c5
v: v3
  • Loading branch information
Al Viro committed Jul 22, 2011
1 parent 2a18447 commit 218a5f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: ed70afcd6e795e3de98df56f1cd0f898fbf641a7
refs/heads/master: 841590ce16c19a3ce38028adfc8b1955482ee00c
4 changes: 3 additions & 1 deletion trunk/fs/libfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,10 @@ int simple_rename(struct inode *old_dir, struct dentry *old_dentry,

if (new_dentry->d_inode) {
simple_unlink(new_dir, new_dentry);
if (they_are_dirs)
if (they_are_dirs) {
drop_nlink(new_dentry->d_inode);
drop_nlink(old_dir);
}
} else if (they_are_dirs) {
drop_nlink(old_dir);
inc_nlink(new_dir);
Expand Down

0 comments on commit 218a5f8

Please sign in to comment.