Skip to content

Commit

Permalink
nilfs2: segment usage file
Browse files Browse the repository at this point in the history
This adds a meta data file which stores the allocation state of segments.

[[email protected]: fix wrong counting of checkpoints and dirty segments]
Signed-off-by: Koji Sato <[email protected]>
Signed-off-by: Ryusuke Konishi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Koji Sato authored and torvalds committed Apr 7, 2009
1 parent 2961980 commit 6c98cd4
Show file tree
Hide file tree
Showing 3 changed files with 682 additions and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nilfs2/cpfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ int nilfs_cpfile_delete_checkpoints(struct inode *cpfile,
kaddr = kmap_atomic(header_bh->b_page, KM_USER0);
header = nilfs_cpfile_block_get_header(cpfile, header_bh,
kaddr);
le64_add_cpu(&header->ch_ncheckpoints, -tnicps);
le64_add_cpu(&header->ch_ncheckpoints, -(u64)tnicps);
nilfs_mdt_mark_buffer_dirty(header_bh);
nilfs_mdt_mark_dirty(cpfile);
kunmap_atomic(kaddr, KM_USER0);
Expand Down
Loading

0 comments on commit 6c98cd4

Please sign in to comment.