• Home
  • Raw
  • Download

Lines Matching refs:cp

86 	struct nilfs_checkpoint *cp = kaddr + bh_offset(bh);  in nilfs_cpfile_block_add_valid_checkpoints()  local
89 count = le32_to_cpu(cp->cp_checkpoints_count) + n; in nilfs_cpfile_block_add_valid_checkpoints()
90 cp->cp_checkpoints_count = cpu_to_le32(count); in nilfs_cpfile_block_add_valid_checkpoints()
100 struct nilfs_checkpoint *cp = kaddr + bh_offset(bh); in nilfs_cpfile_block_sub_valid_checkpoints() local
103 WARN_ON(le32_to_cpu(cp->cp_checkpoints_count) < n); in nilfs_cpfile_block_sub_valid_checkpoints()
104 count = le32_to_cpu(cp->cp_checkpoints_count) - n; in nilfs_cpfile_block_sub_valid_checkpoints()
105 cp->cp_checkpoints_count = cpu_to_le32(count); in nilfs_cpfile_block_sub_valid_checkpoints()
130 struct nilfs_checkpoint *cp = kaddr + bh_offset(bh); in nilfs_cpfile_block_init() local
135 nilfs_checkpoint_set_invalid(cp); in nilfs_cpfile_block_init()
136 cp = (void *)cp + cpsz; in nilfs_cpfile_block_init()
234 struct nilfs_checkpoint *cp; in nilfs_cpfile_get_checkpoint() local
251 cp = nilfs_cpfile_block_get_checkpoint(cpfile, cno, cp_bh, kaddr); in nilfs_cpfile_get_checkpoint()
252 if (nilfs_checkpoint_invalid(cp)) { in nilfs_cpfile_get_checkpoint()
260 nilfs_checkpoint_clear_invalid(cp); in nilfs_cpfile_get_checkpoint()
276 *cpp = cp; in nilfs_cpfile_get_checkpoint()
329 struct nilfs_checkpoint *cp; in nilfs_cpfile_delete_checkpoints() local
363 cp = nilfs_cpfile_block_get_checkpoint( in nilfs_cpfile_delete_checkpoints()
366 for (i = 0; i < ncps; i++, cp = (void *)cp + cpsz) { in nilfs_cpfile_delete_checkpoints()
367 if (nilfs_checkpoint_snapshot(cp)) { in nilfs_cpfile_delete_checkpoints()
369 } else if (!nilfs_checkpoint_invalid(cp)) { in nilfs_cpfile_delete_checkpoints()
370 nilfs_checkpoint_set_invalid(cp); in nilfs_cpfile_delete_checkpoints()
423 struct nilfs_checkpoint *cp, in nilfs_cpfile_checkpoint_to_cpinfo() argument
426 ci->ci_flags = le32_to_cpu(cp->cp_flags); in nilfs_cpfile_checkpoint_to_cpinfo()
427 ci->ci_cno = le64_to_cpu(cp->cp_cno); in nilfs_cpfile_checkpoint_to_cpinfo()
428 ci->ci_create = le64_to_cpu(cp->cp_create); in nilfs_cpfile_checkpoint_to_cpinfo()
429 ci->ci_nblk_inc = le64_to_cpu(cp->cp_nblk_inc); in nilfs_cpfile_checkpoint_to_cpinfo()
430 ci->ci_inodes_count = le64_to_cpu(cp->cp_inodes_count); in nilfs_cpfile_checkpoint_to_cpinfo()
431 ci->ci_blocks_count = le64_to_cpu(cp->cp_blocks_count); in nilfs_cpfile_checkpoint_to_cpinfo()
432 ci->ci_next = le64_to_cpu(cp->cp_snapshot_list.ssl_next); in nilfs_cpfile_checkpoint_to_cpinfo()
438 struct nilfs_checkpoint *cp; in nilfs_cpfile_do_get_cpinfo() local
462 cp = nilfs_cpfile_block_get_checkpoint(cpfile, cno, bh, kaddr); in nilfs_cpfile_do_get_cpinfo()
463 for (i = 0; i < ncps && n < nci; i++, cp = (void *)cp + cpsz) { in nilfs_cpfile_do_get_cpinfo()
464 if (!nilfs_checkpoint_invalid(cp)) { in nilfs_cpfile_do_get_cpinfo()
465 nilfs_cpfile_checkpoint_to_cpinfo(cpfile, cp, in nilfs_cpfile_do_get_cpinfo()
491 struct nilfs_checkpoint *cp; in nilfs_cpfile_do_get_ssinfo() local
527 cp = nilfs_cpfile_block_get_checkpoint(cpfile, curr, bh, kaddr); in nilfs_cpfile_do_get_ssinfo()
529 if (unlikely(nilfs_checkpoint_invalid(cp) || in nilfs_cpfile_do_get_ssinfo()
530 !nilfs_checkpoint_snapshot(cp))) in nilfs_cpfile_do_get_ssinfo()
532 nilfs_cpfile_checkpoint_to_cpinfo(cpfile, cp, ci); in nilfs_cpfile_do_get_ssinfo()
535 next = le64_to_cpu(cp->cp_snapshot_list.ssl_next); in nilfs_cpfile_do_get_ssinfo()
614 struct nilfs_checkpoint *cp; in nilfs_cpfile_block_get_snapshot_list() local
618 cp = nilfs_cpfile_block_get_checkpoint(cpfile, cno, bh, kaddr); in nilfs_cpfile_block_get_snapshot_list()
619 list = &cp->cp_snapshot_list; in nilfs_cpfile_block_get_snapshot_list()
631 struct nilfs_checkpoint *cp; in nilfs_cpfile_set_snapshot() local
646 cp = nilfs_cpfile_block_get_checkpoint(cpfile, cno, cp_bh, kaddr); in nilfs_cpfile_set_snapshot()
647 if (nilfs_checkpoint_invalid(cp)) { in nilfs_cpfile_set_snapshot()
652 if (nilfs_checkpoint_snapshot(cp)) { in nilfs_cpfile_set_snapshot()
683 cp = nilfs_cpfile_block_get_checkpoint( in nilfs_cpfile_set_snapshot()
685 list = &cp->cp_snapshot_list; in nilfs_cpfile_set_snapshot()
707 cp = nilfs_cpfile_block_get_checkpoint(cpfile, cno, cp_bh, kaddr); in nilfs_cpfile_set_snapshot()
708 cp->cp_snapshot_list.ssl_next = cpu_to_le64(curr); in nilfs_cpfile_set_snapshot()
709 cp->cp_snapshot_list.ssl_prev = cpu_to_le64(prev); in nilfs_cpfile_set_snapshot()
710 nilfs_checkpoint_set_snapshot(cp); in nilfs_cpfile_set_snapshot()
750 struct nilfs_checkpoint *cp; in nilfs_cpfile_clear_snapshot() local
764 cp = nilfs_cpfile_block_get_checkpoint(cpfile, cno, cp_bh, kaddr); in nilfs_cpfile_clear_snapshot()
765 if (nilfs_checkpoint_invalid(cp)) { in nilfs_cpfile_clear_snapshot()
770 if (!nilfs_checkpoint_snapshot(cp)) { in nilfs_cpfile_clear_snapshot()
776 list = &cp->cp_snapshot_list; in nilfs_cpfile_clear_snapshot()
816 cp = nilfs_cpfile_block_get_checkpoint(cpfile, cno, cp_bh, kaddr); in nilfs_cpfile_clear_snapshot()
817 cp->cp_snapshot_list.ssl_next = cpu_to_le64(0); in nilfs_cpfile_clear_snapshot()
818 cp->cp_snapshot_list.ssl_prev = cpu_to_le64(0); in nilfs_cpfile_clear_snapshot()
819 nilfs_checkpoint_clear_snapshot(cp); in nilfs_cpfile_clear_snapshot()
869 struct nilfs_checkpoint *cp; in nilfs_cpfile_is_snapshot() local
883 cp = nilfs_cpfile_block_get_checkpoint(cpfile, cno, bh, kaddr); in nilfs_cpfile_is_snapshot()
884 if (nilfs_checkpoint_invalid(cp)) in nilfs_cpfile_is_snapshot()
887 ret = nilfs_checkpoint_snapshot(cp); in nilfs_cpfile_is_snapshot()