Lines Matching refs:cno
546 int nilfs_attach_checkpoint(struct super_block *sb, __u64 cno, int curr_mnt, in nilfs_attach_checkpoint() argument
554 nilfs, curr_mnt ? NILFS_CPTREE_CURRENT_CNO : cno); in nilfs_attach_checkpoint()
562 err = nilfs_ifile_read(sb, root, cno, nilfs->ns_inode_size); in nilfs_attach_checkpoint()
574 (unsigned long long)cno); in nilfs_attach_checkpoint()
683 if (root->cno != NILFS_CPTREE_CURRENT_CNO) in nilfs_show_options()
684 seq_printf(seq, ",cp=%llu", (unsigned long long)root->cno); in nilfs_show_options()
736 __u64 cno; member
785 nilfs->cno = result.uint_64; in nilfs_parse_param()
922 if (root->cno == NILFS_CPTREE_CURRENT_CNO) { in nilfs_get_root_dentry()
949 static int nilfs_attach_snapshot(struct super_block *s, __u64 cno, in nilfs_attach_snapshot() argument
959 ret = nilfs_cpfile_is_snapshot(nilfs->ns_cpfile, cno); in nilfs_attach_snapshot()
967 (unsigned long long)cno); in nilfs_attach_snapshot()
972 ret = nilfs_attach_checkpoint(s, cno, false, &root); in nilfs_attach_snapshot()
976 ret, (unsigned long long)cno); in nilfs_attach_snapshot()
998 int nilfs_checkpoint_is_mounted(struct super_block *sb, __u64 cno) in nilfs_checkpoint_is_mounted() argument
1006 if (cno > nilfs->ns_cno) in nilfs_checkpoint_is_mounted()
1009 if (cno >= nilfs_last_cno(nilfs)) in nilfs_checkpoint_is_mounted()
1013 root = nilfs_lookup_root(nilfs, cno); in nilfs_checkpoint_is_mounted()
1043 __u64 cno; in nilfs_fill_super() local
1075 cno = nilfs_last_cno(nilfs); in nilfs_fill_super()
1076 err = nilfs_attach_checkpoint(sb, cno, true, &fsroot); in nilfs_fill_super()
1080 err, (unsigned long long)cno); in nilfs_fill_super()
1202 if (ctx->cno && !(fc->sb_flags & SB_RDONLY)) { in nilfs_get_tree()
1205 ctx->cno); in nilfs_get_tree()
1225 } else if (!ctx->cno) { in nilfs_get_tree()
1253 if (ctx->cno) { in nilfs_get_tree()
1256 err = nilfs_attach_snapshot(s, ctx->cno, &root_dentry); in nilfs_get_tree()