Lines Matching defs:cno
552 int nilfs_attach_checkpoint(struct super_block *sb, __u64 cno, int curr_mnt,
560 nilfs, curr_mnt ? NILFS_CPTREE_CURRENT_CNO : cno);
568 err = nilfs_ifile_read(sb, root, cno, nilfs->ns_inode_size);
580 (unsigned long long)cno);
689 if (root->cno != NILFS_CPTREE_CURRENT_CNO)
690 seq_printf(seq, ",cp=%llu", (unsigned long long)root->cno);
742 __u64 cno;
791 nilfs->cno = result.uint_64;
928 if (root->cno == NILFS_CPTREE_CURRENT_CNO) {
955 static int nilfs_attach_snapshot(struct super_block *s, __u64 cno,
965 ret = nilfs_cpfile_is_snapshot(nilfs->ns_cpfile, cno);
973 (unsigned long long)cno);
978 ret = nilfs_attach_checkpoint(s, cno, false, &root);
982 ret, (unsigned long long)cno);
1004 int nilfs_checkpoint_is_mounted(struct super_block *sb, __u64 cno)
1012 if (cno > nilfs->ns_cno)
1015 if (cno >= nilfs_last_cno(nilfs))
1019 root = nilfs_lookup_root(nilfs, cno);
1051 __u64 cno;
1083 cno = nilfs_last_cno(nilfs);
1084 err = nilfs_attach_checkpoint(sb, cno, true, &fsroot);
1088 err, (unsigned long long)cno);
1210 if (ctx->cno && !(fc->sb_flags & SB_RDONLY)) {
1213 ctx->cno);
1233 } else if (!ctx->cno) {
1261 if (ctx->cno) {
1264 err = nilfs_attach_snapshot(s, ctx->cno, &root_dentry);