diff options
author | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2010-08-28 23:44:56 -0400 |
---|---|---|
committer | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2010-10-22 20:24:38 -0400 |
commit | c1c1d7092072093ad960db2f6c08f06705c57fa4 (patch) | |
tree | 115796528882ed5d8d21258ad8cf481765a5035a /fs/nilfs2/bmap.c | |
parent | b1f6a4f294088b3fcf9ae67915ca550a1ded2819 (diff) |
nilfs2: get rid of GCDAT inode
This applies prepared rollback function and redirect function of
metadata file to DAT file, and eliminates GCDAT inode.
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Diffstat (limited to 'fs/nilfs2/bmap.c')
-rw-r--r-- | fs/nilfs2/bmap.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/fs/nilfs2/bmap.c b/fs/nilfs2/bmap.c index 00244402d59e..8b782b062baa 100644 --- a/fs/nilfs2/bmap.c +++ b/fs/nilfs2/bmap.c | |||
@@ -533,22 +533,6 @@ void nilfs_bmap_init_gc(struct nilfs_bmap *bmap) | |||
533 | nilfs_btree_init_gc(bmap); | 533 | nilfs_btree_init_gc(bmap); |
534 | } | 534 | } |
535 | 535 | ||
536 | void nilfs_bmap_init_gcdat(struct nilfs_bmap *gcbmap, struct nilfs_bmap *bmap) | ||
537 | { | ||
538 | memcpy(gcbmap, bmap, sizeof(*bmap)); | ||
539 | init_rwsem(&gcbmap->b_sem); | ||
540 | lockdep_set_class(&bmap->b_sem, &nilfs_bmap_dat_lock_key); | ||
541 | gcbmap->b_inode = &NILFS_BMAP_I(gcbmap)->vfs_inode; | ||
542 | } | ||
543 | |||
544 | void nilfs_bmap_commit_gcdat(struct nilfs_bmap *gcbmap, struct nilfs_bmap *bmap) | ||
545 | { | ||
546 | memcpy(bmap, gcbmap, sizeof(*bmap)); | ||
547 | init_rwsem(&bmap->b_sem); | ||
548 | lockdep_set_class(&bmap->b_sem, &nilfs_bmap_dat_lock_key); | ||
549 | bmap->b_inode = &NILFS_BMAP_I(bmap)->vfs_inode; | ||
550 | } | ||
551 | |||
552 | void nilfs_bmap_save(const struct nilfs_bmap *bmap, | 536 | void nilfs_bmap_save(const struct nilfs_bmap *bmap, |
553 | struct nilfs_bmap_store *store) | 537 | struct nilfs_bmap_store *store) |
554 | { | 538 | { |