diff options
author | Jiro SEKIBA <jir@unicus.jp> | 2009-11-27 05:41:14 -0500 |
---|---|---|
committer | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2009-11-27 06:05:16 -0500 |
commit | abdb318b79d387a723af5db2aa79f812cefd0797 (patch) | |
tree | 7915b48a984df976ed639b7b0a99672e7dc049c6 /fs/nilfs2/inode.c | |
parent | 3534573b58fd7576d3dc8dd66a9973592ac08b2d (diff) |
nilfs2: replace mark_inode_dirty as nilfs_mark_inode_dirty
Replace mark_inode_dirty() as nilfs_mark_inode_dirty()
to reduce deep function 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/inode.c')
-rw-r--r-- | fs/nilfs2/inode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/nilfs2/inode.c b/fs/nilfs2/inode.c index ede03752b96f..7868cc122ac7 100644 --- a/fs/nilfs2/inode.c +++ b/fs/nilfs2/inode.c | |||
@@ -97,7 +97,7 @@ int nilfs_get_block(struct inode *inode, sector_t blkoff, | |||
97 | nilfs_transaction_abort(inode->i_sb); | 97 | nilfs_transaction_abort(inode->i_sb); |
98 | goto out; | 98 | goto out; |
99 | } | 99 | } |
100 | mark_inode_dirty(inode); | 100 | nilfs_mark_inode_dirty(inode); |
101 | nilfs_transaction_commit(inode->i_sb); /* never fails */ | 101 | nilfs_transaction_commit(inode->i_sb); /* never fails */ |
102 | /* Error handling should be detailed */ | 102 | /* Error handling should be detailed */ |
103 | set_buffer_new(bh_result); | 103 | set_buffer_new(bh_result); |
@@ -598,7 +598,7 @@ void nilfs_truncate(struct inode *inode) | |||
598 | if (IS_SYNC(inode)) | 598 | if (IS_SYNC(inode)) |
599 | nilfs_set_transaction_flag(NILFS_TI_SYNC); | 599 | nilfs_set_transaction_flag(NILFS_TI_SYNC); |
600 | 600 | ||
601 | mark_inode_dirty(inode); | 601 | nilfs_mark_inode_dirty(inode); |
602 | nilfs_set_file_dirty(NILFS_SB(sb), inode, 0); | 602 | nilfs_set_file_dirty(NILFS_SB(sb), inode, 0); |
603 | nilfs_transaction_commit(sb); | 603 | nilfs_transaction_commit(sb); |
604 | /* May construct a logical segment and may fail in sync mode. | 604 | /* May construct a logical segment and may fail in sync mode. |
@@ -623,7 +623,7 @@ void nilfs_delete_inode(struct inode *inode) | |||
623 | truncate_inode_pages(&inode->i_data, 0); | 623 | truncate_inode_pages(&inode->i_data, 0); |
624 | 624 | ||
625 | nilfs_truncate_bmap(ii, 0); | 625 | nilfs_truncate_bmap(ii, 0); |
626 | mark_inode_dirty(inode); | 626 | nilfs_mark_inode_dirty(inode); |
627 | nilfs_free_inode(inode); | 627 | nilfs_free_inode(inode); |
628 | /* nilfs_free_inode() marks inode buffer dirty */ | 628 | /* nilfs_free_inode() marks inode buffer dirty */ |
629 | if (IS_SYNC(inode)) | 629 | if (IS_SYNC(inode)) |