Lines Matching refs:cno
542 int nilfs_attach_checkpoint(struct super_block *sb, __u64 cno, int curr_mnt,
552 nilfs, curr_mnt ? NILFS_CPTREE_CURRENT_CNO : cno);
560 err = nilfs_cpfile_get_checkpoint(nilfs->ns_cpfile, cno, 0, &raw_cp,
567 (unsigned long long)cno);
583 nilfs_cpfile_put_checkpoint(nilfs->ns_cpfile, cno, bh_cp);
590 nilfs_cpfile_put_checkpoint(nilfs->ns_cpfile, cno, bh_cp);
700 if (root->cno != NILFS_CPTREE_CURRENT_CNO)
701 seq_printf(seq, ",cp=%llu", (unsigned long long)root->cno);
949 if (root->cno == NILFS_CPTREE_CURRENT_CNO) {
976 static int nilfs_attach_snapshot(struct super_block *s, __u64 cno,
986 ret = nilfs_cpfile_is_snapshot(nilfs->ns_cpfile, cno);
994 (unsigned long long)cno);
999 ret = nilfs_attach_checkpoint(s, cno, false, &root);
1003 ret, (unsigned long long)cno);
1025 int nilfs_checkpoint_is_mounted(struct super_block *sb, __u64 cno)
1033 if (cno > nilfs->ns_cno)
1036 if (cno >= nilfs_last_cno(nilfs))
1040 root = nilfs_lookup_root(nilfs, cno);
1070 __u64 cno;
1095 cno = nilfs_last_cno(nilfs);
1096 err = nilfs_attach_checkpoint(sb, cno, true, &fsroot);
1100 err, (unsigned long long)cno);
1220 __u64 cno;
1248 sd->cno = val;
1333 } else if (!sd.cno) {
1353 if (sd.cno) {
1356 err = nilfs_attach_snapshot(s, sd.cno, &root_dentry);