Lines Matching refs:cno
541 int nilfs_attach_checkpoint(struct super_block *sb, __u64 cno, int curr_mnt,
551 nilfs, curr_mnt ? NILFS_CPTREE_CURRENT_CNO : cno);
559 err = nilfs_cpfile_get_checkpoint(nilfs->ns_cpfile, cno, 0, &raw_cp,
566 (unsigned long long)cno);
582 nilfs_cpfile_put_checkpoint(nilfs->ns_cpfile, cno, bh_cp);
589 nilfs_cpfile_put_checkpoint(nilfs->ns_cpfile, cno, bh_cp);
699 if (root->cno != NILFS_CPTREE_CURRENT_CNO)
700 seq_printf(seq, ",cp=%llu", (unsigned long long)root->cno);
948 if (root->cno == NILFS_CPTREE_CURRENT_CNO) {
975 static int nilfs_attach_snapshot(struct super_block *s, __u64 cno,
985 ret = nilfs_cpfile_is_snapshot(nilfs->ns_cpfile, cno);
993 (unsigned long long)cno);
998 ret = nilfs_attach_checkpoint(s, cno, false, &root);
1002 ret, (unsigned long long)cno);
1024 int nilfs_checkpoint_is_mounted(struct super_block *sb, __u64 cno)
1032 if (cno > nilfs->ns_cno)
1035 if (cno >= nilfs_last_cno(nilfs))
1039 root = nilfs_lookup_root(nilfs, cno);
1069 __u64 cno;
1094 cno = nilfs_last_cno(nilfs);
1095 err = nilfs_attach_checkpoint(sb, cno, true, &fsroot);
1099 err, (unsigned long long)cno);
1220 __u64 cno;
1248 sd->cno = val;
1313 sd.cno = 0;
1352 } else if (!sd.cno) {
1372 if (sd.cno) {
1373 err = nilfs_attach_snapshot(s, sd.cno, &root_dentry);