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
..
2010-09-13 08:13:03 -05:00
2010-10-22 10:52:01 -07:00
2010-10-22 10:52:01 -07:00
2010-10-22 10:52:56 -07:00
2010-10-22 10:52:01 -07:00
2010-10-22 10:52:56 -07:00
2010-10-04 21:10:35 +02:00
2010-10-15 15:53:27 +02:00
2010-10-15 15:53:27 +02:00
2010-10-20 15:38:27 -07:00
2010-10-22 10:52:01 -07:00
2010-10-22 10:52:56 -07:00
2010-08-18 01:01:33 -04:00
2010-10-15 15:53:27 +02:00
2010-10-15 15:53:27 +02:00
2010-10-22 10:52:56 -07:00
2010-10-08 11:26:54 -04:00
2010-10-04 21:10:44 +02:00
2010-10-22 10:52:01 -07:00
2010-10-22 10:52:01 -07:00
2010-10-04 21:10:45 +02:00
2010-10-21 18:48:09 +02:00
2010-08-12 09:51:35 -07:00
2010-10-22 10:52:56 -07:00
2010-10-22 10:52:56 -07:00
2010-10-22 10:52:01 -07:00
2010-10-15 05:45:00 -07:00
2010-08-18 06:21:10 -04:00
2010-10-22 10:52:01 -07:00
2010-10-15 15:53:27 +02:00
2010-10-15 15:53:27 +02:00
2010-10-04 21:10:45 +02:00
2010-08-18 01:09:01 -04:00
2010-09-10 08:41:54 -07:00
2010-10-04 21:10:50 +02:00
2010-10-04 21:10:40 +02:00
2010-10-15 15:53:27 +02:00
2010-09-09 18:57:25 -07:00
2010-10-05 11:02:14 +02:00
2010-10-22 10:52:01 -07:00
2010-10-22 10:52:56 -07:00
2010-10-23 09:24:37 +09:00
2010-10-22 10:52:56 -07:00
2010-10-04 21:10:41 +02:00
2010-10-22 10:52:56 -07:00
2010-08-10 11:47:36 -07:00
2010-08-13 10:06:55 +02:00
2010-10-22 10:52:56 -07:00
2010-10-21 18:48:04 +02:00
2010-08-10 11:26:52 -07:00
2010-08-09 16:47:39 -04:00
2010-10-01 10:50:59 -07:00
2010-10-15 15:53:27 +02:00
2010-10-22 10:52:01 -07:00
2010-10-22 10:52:56 -07:00
2010-10-17 01:57:44 +02:00
2010-08-11 08:59:23 -07:00
2010-10-15 15:53:27 +02:00
2010-10-22 10:52:01 -07:00
2010-10-22 10:52:01 -07:00
2010-10-06 22:35:48 -05:00
2010-09-22 17:22:39 -07:00
2010-08-09 16:47:39 -04:00
2010-08-14 00:24:24 +02:00
2010-10-14 10:57:40 -07:00
2010-10-08 10:02:53 +01:00
2010-10-15 15:53:27 +02:00
2010-08-17 18:07:43 -07:00
2010-08-23 13:36:59 +02:00
2010-08-07 18:20:39 +02:00
2010-08-11 08:59:18 -07:00
2010-08-18 01:09:01 -04:00
2010-10-22 10:52:56 -07:00
2010-10-19 11:29:54 +02:00
2010-09-22 17:22:38 -07:00
2010-08-18 08:35:48 -04:00
2010-09-09 18:57:22 -07:00
2010-08-09 16:47:44 -04:00
2010-10-15 15:53:27 +02:00
2010-10-15 15:53:27 +02:00
2010-10-14 19:15:28 -07:00
2010-09-09 18:57:25 -07:00
2010-10-15 15:53:27 +02:00
2010-08-18 08:35:48 -04:00
2010-08-11 08:59:02 -07:00
2010-08-18 08:35:46 -04:00
2010-10-04 14:25:33 +02:00
2010-08-18 01:04:22 -04:00
2010-08-10 11:39:13 -07:00
2010-08-18 08:35:48 -04:00
2010-08-14 00:24:24 +02:00
2010-10-21 15:44:13 +02:00
2010-09-10 08:42:48 -07:00
2010-10-05 11:02:04 +02:00
2010-08-18 06:24:41 -04:00
2010-08-18 08:35:48 -04:00
2010-10-04 21:10:43 +02:00
2010-10-15 15:53:27 +02:00
2010-08-18 08:35:47 -04:00
2010-08-18 08:35:48 -04:00
2010-10-15 15:53:46 +02:00
2010-08-09 20:45:05 -07:00
2010-10-15 15:53:27 +02:00
2010-08-07 18:52:56 +02:00
2010-08-13 16:53:13 -07:00
2010-08-09 16:48:44 -04:00
2010-08-18 08:35:48 -04:00
2010-08-09 16:47:43 -04:00
2010-10-15 15:53:27 +02:00
2010-08-13 16:53:13 -07:00