Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174720
b: refs/heads/master
c: 1749147
h: refs/heads/master
v: v3
  • Loading branch information
Jiro SEKIBA authored and Ryusuke Konishi committed Nov 27, 2009
1 parent 54ce1bc commit 24df886
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 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: 565de406e7bfa92ffec6315e89857986da657192
refs/heads/master: 17491472769abbf4dac694d96c65eed5a7e1c81c
4 changes: 0 additions & 4 deletions trunk/fs/nilfs2/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@ static int nilfs_mkdir(struct inode *dir, struct dentry *dentry, int mode)
return err;

inc_nlink(dir);
mark_inode_dirty(dir);

inode = nilfs_new_inode(dir, S_IFDIR | mode);
err = PTR_ERR(inode);
Expand Down Expand Up @@ -280,7 +279,6 @@ static int nilfs_mkdir(struct inode *dir, struct dentry *dentry, int mode)

out_fail:
drop_nlink(inode);
mark_inode_dirty(inode);
drop_nlink(inode);
mark_inode_dirty(inode);
iput(inode);
Expand Down Expand Up @@ -405,7 +403,6 @@ static int nilfs_rename(struct inode *old_dir, struct dentry *old_dentry,
if (!new_de)
goto out_dir;
inc_nlink(old_inode);
mark_inode_dirty(old_inode);
nilfs_set_link(new_dir, new_de, new_page, old_inode);
mark_inode_dirty(new_dir);
new_inode->i_ctime = CURRENT_TIME;
Expand All @@ -420,7 +417,6 @@ static int nilfs_rename(struct inode *old_dir, struct dentry *old_dentry,
goto out_dir;
}
inc_nlink(old_inode);
mark_inode_dirty(old_inode);
err = nilfs_add_link(new_dentry, old_inode);
if (err) {
drop_nlink(old_inode);
Expand Down

0 comments on commit 24df886

Please sign in to comment.