nilfs2: reduce redundant mark_inode_dirty
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest9 patches 1 replyIn review
- v19 patches 5 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | nilfs2: delete mark_inode_dirty in nilfs_new_inodefs/ fs/ | +1 | 0 replies | |
| 2/9 | nilfs2: delete mark_inode_dirty from nilfs_set_linkfs/ fs/ | +3 | 0 replies | |
| 3/9 | nilfs2: expand inode_inc_link_count and inode_dec_link_countfs/ | +32 | 0 replies | |
| 4/9 | nilfs2: delete redundant mark_inode_dirtyfs/ | +0 | 0 replies | |
| 5/9 | nilfs2: split nilfs_unlink as nilfs_do_unlink and nilfs_unlinkfs/ | +19 | 0 replies | |
| 6/9 | nilfs2: change return type of nilfs_commit_chunkfs/ | +8 | 0 replies | |
| 7/9 | nilfs2: delete mark_inode_dirty in nilfs_commit_chunkfs/ fs/ | +2 | 0 replies | |
| 8/9 | nilfs2: delete mark_inode_dirty in nilfs_delete_entryfs/ fs/ | +2 | 0 replies | |
| 9/9 | nilfs2: replace mark_inode_dirty as nilfs_mark_inode_dirtyfs/ fs/ fs/ | +20 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCHv2 0/9] nilfs2: reduce redundant mark_inode_dirty
Hi,
This is a revised series of patches to reduce redandunt mark_inode_dirty calls.
Many functions call mark_inode_dirty() whenever they change inode object. However, it is redundant to call mark_inode_dirty() to same inode object within a transaction.
Last patch also replaces all mark_inode_dirty() calls as nilfs_mark_inode_dirty(), to reduce deep function call tree.
Changes since v2 is:
- deleted mark_inode_dirty(dir) in nilfs_mkdir()
- moved mark_inod_dirty(dir) from nilfs_do_unlink() to nilfs_unlink()
- correct diff stat ;-)
fs/nilfs2/dir.c | 24 ++++++--------- fs/nilfs2/inode.c | 7 ++-- fs/nilfs2/namei.c | 83 +++++++++++++++++++++++++++++++++------------------- 3 files changed, 66 insertions(+), 48 deletions(-)