mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-17 10:46:33 +00:00
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>
This commit is contained in:
parent
565de406e7
commit
1749147276
@ -247,7 +247,6 @@ static int nilfs_mkdir(struct inode *dir, struct dentry *dentry, int mode)
|
|||||||
return err;
|
return err;
|
||||||
|
|
||||||
inc_nlink(dir);
|
inc_nlink(dir);
|
||||||
mark_inode_dirty(dir);
|
|
||||||
|
|
||||||
inode = nilfs_new_inode(dir, S_IFDIR | mode);
|
inode = nilfs_new_inode(dir, S_IFDIR | mode);
|
||||||
err = PTR_ERR(inode);
|
err = PTR_ERR(inode);
|
||||||
@ -280,7 +279,6 @@ out:
|
|||||||
|
|
||||||
out_fail:
|
out_fail:
|
||||||
drop_nlink(inode);
|
drop_nlink(inode);
|
||||||
mark_inode_dirty(inode);
|
|
||||||
drop_nlink(inode);
|
drop_nlink(inode);
|
||||||
mark_inode_dirty(inode);
|
mark_inode_dirty(inode);
|
||||||
iput(inode);
|
iput(inode);
|
||||||
@ -405,7 +403,6 @@ static int nilfs_rename(struct inode *old_dir, struct dentry *old_dentry,
|
|||||||
if (!new_de)
|
if (!new_de)
|
||||||
goto out_dir;
|
goto out_dir;
|
||||||
inc_nlink(old_inode);
|
inc_nlink(old_inode);
|
||||||
mark_inode_dirty(old_inode);
|
|
||||||
nilfs_set_link(new_dir, new_de, new_page, old_inode);
|
nilfs_set_link(new_dir, new_de, new_page, old_inode);
|
||||||
mark_inode_dirty(new_dir);
|
mark_inode_dirty(new_dir);
|
||||||
new_inode->i_ctime = CURRENT_TIME;
|
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;
|
goto out_dir;
|
||||||
}
|
}
|
||||||
inc_nlink(old_inode);
|
inc_nlink(old_inode);
|
||||||
mark_inode_dirty(old_inode);
|
|
||||||
err = nilfs_add_link(new_dentry, old_inode);
|
err = nilfs_add_link(new_dentry, old_inode);
|
||||||
if (err) {
|
if (err) {
|
||||||
drop_nlink(old_inode);
|
drop_nlink(old_inode);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user