diff options
author | Jiro SEKIBA <jir@unicus.jp> | 2009-11-27 05:41:09 -0500 |
---|---|---|
committer | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2009-11-27 06:05:15 -0500 |
commit | 17491472769abbf4dac694d96c65eed5a7e1c81c (patch) | |
tree | a811e18a9c29df370cdbf9018c1aded35d93ffa8 /fs/nilfs2 | |
parent | 565de406e7bfa92ffec6315e89857986da657192 (diff) |
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/nilfs2')
-rw-r--r-- | fs/nilfs2/namei.c | 4 |
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) | |||
247 | return err; | 247 | return err; |
248 | 248 | ||
249 | inc_nlink(dir); | 249 | inc_nlink(dir); |
250 | mark_inode_dirty(dir); | ||
251 | 250 | ||
252 | inode = nilfs_new_inode(dir, S_IFDIR | mode); | 251 | inode = nilfs_new_inode(dir, S_IFDIR | mode); |
253 | err = PTR_ERR(inode); | 252 | err = PTR_ERR(inode); |
@@ -280,7 +279,6 @@ out: | |||
280 | 279 | ||
281 | out_fail: | 280 | out_fail: |
282 | drop_nlink(inode); | 281 | drop_nlink(inode); |
283 | mark_inode_dirty(inode); | ||
284 | drop_nlink(inode); | 282 | drop_nlink(inode); |
285 | mark_inode_dirty(inode); | 283 | mark_inode_dirty(inode); |
286 | iput(inode); | 284 | iput(inode); |
@@ -405,7 +403,6 @@ static int nilfs_rename(struct inode *old_dir, struct dentry *old_dentry, | |||
405 | if (!new_de) | 403 | if (!new_de) |
406 | goto out_dir; | 404 | goto out_dir; |
407 | inc_nlink(old_inode); | 405 | inc_nlink(old_inode); |
408 | mark_inode_dirty(old_inode); | ||
409 | nilfs_set_link(new_dir, new_de, new_page, old_inode); | 406 | nilfs_set_link(new_dir, new_de, new_page, old_inode); |
410 | mark_inode_dirty(new_dir); | 407 | mark_inode_dirty(new_dir); |
411 | new_inode->i_ctime = CURRENT_TIME; | 408 | new_inode->i_ctime = CURRENT_TIME; |
@@ -420,7 +417,6 @@ static int nilfs_rename(struct inode *old_dir, struct dentry *old_dentry, | |||
420 | goto out_dir; | 417 | goto out_dir; |
421 | } | 418 | } |
422 | inc_nlink(old_inode); | 419 | inc_nlink(old_inode); |
423 | mark_inode_dirty(old_inode); | ||
424 | err = nilfs_add_link(new_dentry, old_inode); | 420 | err = nilfs_add_link(new_dentry, old_inode); |
425 | if (err) { | 421 | if (err) { |
426 | drop_nlink(old_inode); | 422 | drop_nlink(old_inode); |