original_kernel/fs/nilfs2
Ryusuke Konishi ebdfed4dc5 nilfs2: add routines to roll back state of DAT file
This adds optional function to metadata files which makes a copy of
bmap, page caches, and b-tree node cache, and rolls back to the copy
as needed.

This enhancement is intended to displace gcdat inode that provides a
similar function in a different way.

In this patch, nilfs_shadow_map structure is added to store a copy of
the foregoing states.  nilfs_mdt_setup_shadow_map relates this
structure to a metadata file.  And, nilfs_mdt_save_to_shadow_map() and
nilfs_mdt_restore_from_shadow_map() provides save and restore
functions respectively.  Finally, nilfs_mdt_clear_shadow_map() clears
states of nilfs_shadow_map.

The copy of b-tree node cache and page cache is made by duplicating
only dirty pages into corresponding caches in nilfs_shadow_map.  Their
restoration is done by clearing dirty pages from original caches and
by copying dirty pages back from nilfs_shadow_map.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
2010-10-23 09:24:37 +09:00
..
Kconfig
Makefile
alloc.c
alloc.h
bmap.c nilfs2: add routines to save and restore bmap state 2010-10-23 09:24:37 +09:00
bmap.h nilfs2: add routines to save and restore bmap state 2010-10-23 09:24:37 +09:00
btnode.c nilfs2: add routines to roll back state of DAT file 2010-10-23 09:24:37 +09:00
btnode.h
btree.c
btree.h
cpfile.c
cpfile.h
dat.c
dat.h
dir.c
direct.c
direct.h
export.h nilfs2: make snapshots in checkpoint tree exportable 2010-10-23 09:24:34 +09:00
file.c
gcdat.c
gcinode.c nilfs2: do not allocate nilfs_mdt_info structure to gc-inodes 2010-10-23 09:24:37 +09:00
ifile.c
ifile.h
inode.c nilfs2: allow nilfs_clear_inode to clear metadata file inodes 2010-10-23 09:24:37 +09:00
ioctl.c nilfs2: simplify life cycle management of nilfs object 2010-10-23 09:24:36 +09:00
mdt.c nilfs2: add routines to roll back state of DAT file 2010-10-23 09:24:37 +09:00
mdt.h nilfs2: add routines to roll back state of DAT file 2010-10-23 09:24:37 +09:00
namei.c nilfs2: deny write access to inodes in snapshots 2010-10-23 09:24:35 +09:00
nilfs.h nilfs2: deny write access to inodes in snapshots 2010-10-23 09:24:35 +09:00
page.c nilfs2: add routines to roll back state of DAT file 2010-10-23 09:24:37 +09:00
page.h nilfs2: add routines to roll back state of DAT file 2010-10-23 09:24:37 +09:00
recovery.c nilfs2: use root object to get ifile 2010-10-23 09:24:35 +09:00
sb.h nilfs2: do not allocate multiple super block instances for a device 2010-10-23 09:24:36 +09:00
segbuf.c
segbuf.h
segment.c nilfs2: move inode count and block count into root object 2010-10-23 09:24:35 +09:00
segment.h nilfs2: use root object to get ifile 2010-10-23 09:24:35 +09:00
sufile.c
sufile.h
super.c nilfs2: simplify life cycle management of nilfs object 2010-10-23 09:24:36 +09:00
the_nilfs.c nilfs2: simplify life cycle management of nilfs object 2010-10-23 09:24:36 +09:00
the_nilfs.h nilfs2: simplify life cycle management of nilfs object 2010-10-23 09:24:36 +09:00