Lines Matching full:checkpoint

3  * NILFS checkpoint file.
116 * nilfs_cpfile_checkpoint_offset - calculate the byte offset of a checkpoint
118 * @cpfile: checkpoint file inode
119 * @cno: checkpoint number
120 * @bh: buffer head of block containing checkpoint indexed by @cno
122 * Return: Byte offset in the folio of the checkpoint specified by @cno.
135 * checkpoint snapshot list in the folio
137 * @cpfile: checkpoint file inode
138 * @cno: checkpoint number
139 * @bh: buffer head of block containing checkpoint indexed by @cno
141 * Return: Byte offset in the folio of the checkpoint snapshot list specified
156 * Return: Byte offset in the folio of the checkpoint snapshot list
170 "missing header block in checkpoint metadata"); in nilfs_cpfile_get_header_block()
189 * @start_cno: start checkpoint number (inclusive)
190 * @end_cno: end checkpoint number (inclusive)
191 * @cnop: place to store the next checkpoint number
229 * nilfs_cpfile_read_checkpoint - read a checkpoint entry in cpfile
230 * @cpfile: checkpoint file inode
231 * @cno: number of checkpoint entry to read
235 * This function imports checkpoint information from the checkpoint file and
241 * * %-EINVAL - Invalid checkpoint.
274 * Since this inode is on a checkpoint entry, treat errors in nilfs_cpfile_read_checkpoint()
278 "ifile inode (checkpoint number=%llu) corrupted", in nilfs_cpfile_read_checkpoint()
298 * nilfs_cpfile_create_checkpoint - create a checkpoint entry on cpfile
299 * @cpfile: checkpoint file inode
300 * @cno: number of checkpoint to set up
302 * This function creates a checkpoint with the number specified by @cno on
303 * cpfile. If the specified checkpoint entry already exists due to a past
305 * In either case, the buffer of the block containing the checkpoint entry
337 /* a newly-created checkpoint */ in nilfs_cpfile_create_checkpoint()
366 * nilfs_cpfile_finalize_checkpoint - fill in a checkpoint entry in cpfile
367 * @cpfile: checkpoint file inode
368 * @cno: checkpoint number
370 * @blkinc: number of blocks added by this checkpoint
371 * @ctime: checkpoint creation time
372 * @minor: minor checkpoint flag
374 * This function completes the checkpoint entry numbered by @cno in the
435 "checkpoint finalization failed due to metadata corruption."); in nilfs_cpfile_finalize_checkpoint()
442 * @cpfile: inode of checkpoint file
443 * @start: start checkpoint number
444 * @end: end checkpoint number
532 "error %d deleting checkpoint block", ret); in nilfs_cpfile_delete_checkpoints()
582 return -ENOENT; /* checkpoint number 0 is invalid */ in nilfs_cpfile_do_get_cpinfo()
701 * @cpfile: checkpoint file inode
702 * @cnop: place to pass a starting checkpoint number and receive a
703 * checkpoint number to continue the search
706 * @cisz: byte size of one checkpoint info item in array
707 * @nci: number of checkpoint info items to retrieve
710 * starting from the checkpoint number stored in @cnop, and stores
713 * for @nci checkpoints. If at least one checkpoint information is
714 * successfully retrieved, @cnop is updated to point to the checkpoint
717 * Return: Count of checkpoint info items stored in the output buffer on
719 * * %-EINVAL - Invalid checkpoint mode.
722 * * %-ENOENT - Invalid checkpoint number specified.
739 * nilfs_cpfile_delete_checkpoint - delete a checkpoint
740 * @cpfile: checkpoint file inode
741 * @cno: checkpoint number to delete
745 * * %-EBUSY - Checkpoint in use (snapshot specified).
747 * * %-ENOENT - No valid checkpoint found.
779 return -ENOENT; /* checkpoint number 0 is invalid */ in nilfs_cpfile_set_snapshot()
805 * Find the last snapshot before the checkpoint being changed to in nilfs_cpfile_set_snapshot()
807 * Set "prev" to its checkpoint number, or 0 if not found. in nilfs_cpfile_set_snapshot()
855 /* Update the checkpoint being changed to a snapshot */ in nilfs_cpfile_set_snapshot()
906 return -ENOENT; /* checkpoint number 0 is invalid */ in nilfs_cpfile_clear_snapshot()
972 /* Update the snapshot being changed back to a plain checkpoint */ in nilfs_cpfile_clear_snapshot()
1007 * nilfs_cpfile_is_snapshot - determine if checkpoint is a snapshot
1008 * @cpfile: inode of checkpoint file
1009 * @cno: checkpoint number
1011 * Return: 1 if the checkpoint specified by @cno is a snapshot, 0 if not, or
1014 * * %-ENOENT - No such checkpoint.
1051 * nilfs_cpfile_change_cpmode - change checkpoint mode
1052 * @cpfile: inode of checkpoint file
1053 * @cno: checkpoint number
1054 * @mode: mode of checkpoint
1056 * Description: nilfs_change_cpmode() changes the mode of the checkpoint
1062 * * %-ENOENT - No such checkpoint.
1090 * nilfs_cpfile_get_stat - get checkpoint statistics
1091 * @cpfile: inode of checkpoint file
1092 * @cpstat: pointer to a structure of checkpoint statistics
1095 * The checkpoint statistics are stored in the location pointed to by @cpstat.
1128 * @cpsize: size of a checkpoint entry
1141 nilfs_err(sb, "too large checkpoint size: %zu bytes", cpsize); in nilfs_cpfile_read()
1144 nilfs_err(sb, "too small checkpoint size: %zu bytes", cpsize); in nilfs_cpfile_read()