summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorJiro SEKIBA <jir@unicus.jp>2009-11-27 11:41:09 +0100
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2009-11-27 12:05:15 +0100
commit17491472769abbf4dac694d96c65eed5a7e1c81c (patch)
treea811e18a9c29df370cdbf9018c1aded35d93ffa8 /fs
parentnilfs2: expand inode_inc_link_count and inode_dec_link_count (diff)
downloadlinux-17491472769abbf4dac694d96c65eed5a7e1c81c.tar.xz
linux-17491472769abbf4dac694d96c65eed5a7e1c81c.zip
nilfs2: delete redundant mark_inode_dirty
delete redundant mark_inode_dirty() calls Signed-off-by: Jiro SEKIBA <jir@unicus.jp> Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Diffstat (limited to 'fs')
-rw-r--r--fs/nilfs2/namei.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/nilfs2/namei.c b/fs/nilfs2/namei.c
index f952439d2702..35f59da16bbf 100644
--- a/fs/nilfs2/namei.c
+++ b/fs/nilfs2/namei.c
@@ -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);
@@ -280,7 +279,6 @@ out:
out_fail:
drop_nlink(inode);
- mark_inode_dirty(inode);
drop_nlink(inode);
mark_inode_dirty(inode);
iput(inode);
@@ -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;
@@ -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);