/* nilfs_cpfile_new - create cpfile @nilfs: nilfs object @cpsize: size of a checkpoint entry  */
struct inode* nilfs_cpfile_new(struct the_nilfs *nilfs, size_t cpsize)
/* nilfs_cpfile_new - create cpfile @nilfs: nilfs object @cpsize: size of a checkpoint entry  */
struct inode* nilfs_cpfile_new(struct the_nilfs *nilfs, size_t cpsize)
{
	struct inode *cpfile;
	cpfile = nilfs_mdt_new(nilfs, NULL, NILFS_CPFILE_INO, 0);
	if (cpfile)
		nilfs_mdt_set_entry_size(cpfile, cpsize,
					 sizeof(struct nilfs_cpfile_header));
	return cpfile;
}