Add one-shot feature for yaffs auto checkpointing.
authorCharles Manning <cdhmanning@gmail.com>
Mon, 12 Apr 2010 04:55:22 +0000 (16:55 +1200)
committerCharles Manning <cdhmanning@gmail.com>
Mon, 12 Apr 2010 04:55:22 +0000 (16:55 +1200)
commite2652ab458ab98ccac696fe20d00013468193f78
tree1c5c01975294211dedfe4713e8ca5a91cfacb57c
parentf37d0b9ff0c87c1e22a5f708dbb4b455da7af59f
Add one-shot feature for yaffs auto checkpointing.

This feature is enabling by ORing in 0x04 to the yaffs_auto_checkpoint
module parameter. This will do a one-shot checkpoint on the next sync and
the bit will then be reset.

This is a nice way to force a checkpoint on the next sync. eg.
echo 6 > /sys/modules/yaffs/parameters/yaffs_auto_checkpoint
sync
yaffs_auto_checkpoint will now be 2

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
yaffs_fs.c