Home
last modified time | relevance | path

Searched refs:cno (Results 1 – 13 of 13) sorted by relevance

/fs/nilfs2/
Dcpfile.c41 nilfs_cpfile_get_blkoff(const struct inode *cpfile, __u64 cno) in nilfs_cpfile_get_blkoff() argument
43 __u64 tcno = cno + NILFS_MDT(cpfile)->mi_first_entry_offset - 1; in nilfs_cpfile_get_blkoff()
50 nilfs_cpfile_get_offset(const struct inode *cpfile, __u64 cno) in nilfs_cpfile_get_offset() argument
52 __u64 tcno = cno + NILFS_MDT(cpfile)->mi_first_entry_offset - 1; in nilfs_cpfile_get_offset()
68 __u64 cno) in nilfs_cpfile_is_in_first() argument
70 return nilfs_cpfile_get_blkoff(cpfile, cno) == 0; in nilfs_cpfile_is_in_first()
111 nilfs_cpfile_block_get_checkpoint(const struct inode *cpfile, __u64 cno, in nilfs_cpfile_block_get_checkpoint() argument
115 return kaddr + bh_offset(bh) + nilfs_cpfile_get_offset(cpfile, cno) * in nilfs_cpfile_block_get_checkpoint()
140 __u64 cno, in nilfs_cpfile_get_checkpoint_block() argument
145 nilfs_cpfile_get_blkoff(cpfile, cno), in nilfs_cpfile_get_checkpoint_block()
[all …]
Dsuper.c520 int nilfs_attach_checkpoint(struct super_block *sb, __u64 cno, int curr_mnt, in nilfs_attach_checkpoint() argument
530 nilfs, curr_mnt ? NILFS_CPTREE_CURRENT_CNO : cno); in nilfs_attach_checkpoint()
538 err = nilfs_cpfile_get_checkpoint(nilfs->ns_cpfile, cno, 0, &raw_cp, in nilfs_attach_checkpoint()
546 (unsigned long long)cno); in nilfs_attach_checkpoint()
560 nilfs_cpfile_put_checkpoint(nilfs->ns_cpfile, cno, bh_cp); in nilfs_attach_checkpoint()
567 nilfs_cpfile_put_checkpoint(nilfs->ns_cpfile, cno, bh_cp); in nilfs_attach_checkpoint()
659 if (root->cno != NILFS_CPTREE_CURRENT_CNO) in nilfs_show_options()
660 seq_printf(seq, ",cp=%llu", (unsigned long long)root->cno); in nilfs_show_options()
910 if (root->cno == NILFS_CPTREE_CURRENT_CNO) { in nilfs_get_root_dentry()
937 static int nilfs_attach_snapshot(struct super_block *s, __u64 cno, in nilfs_attach_snapshot() argument
[all …]
Dthe_nilfs.c42 sector_t start_blocknr, u64 seq, __u64 cno) in nilfs_set_last_segment() argument
47 nilfs->ns_last_cno = cno; in nilfs_set_last_segment()
703 struct nilfs_root *nilfs_lookup_root(struct the_nilfs *nilfs, __u64 cno) in nilfs_lookup_root() argument
713 if (cno < root->cno) { in nilfs_lookup_root()
715 } else if (cno > root->cno) { in nilfs_lookup_root()
729 nilfs_find_or_create_root(struct the_nilfs *nilfs, __u64 cno) in nilfs_find_or_create_root() argument
734 root = nilfs_lookup_root(nilfs, cno); in nilfs_find_or_create_root()
751 if (cno < root->cno) { in nilfs_find_or_create_root()
753 } else if (cno > root->cno) { in nilfs_find_or_create_root()
763 new->cno = cno; in nilfs_find_or_create_root()
Dthe_nilfs.h237 __u64 cno; member
275 struct nilfs_root *nilfs_lookup_root(struct the_nilfs *nilfs, __u64 cno);
277 __u64 cno);
343 __u64 cno; in nilfs_last_cno() local
346 cno = nilfs->ns_last_cno; in nilfs_last_cno()
348 return cno; in nilfs_last_cno()
Dioctl.c207 __u64 cno; in nilfs_ioctl_delete_checkpoint() local
218 if (copy_from_user(&cno, argp, sizeof(cno))) in nilfs_ioctl_delete_checkpoint()
222 ret = nilfs_cpfile_delete_checkpoint(nilfs->ns_cpfile, cno); in nilfs_ioctl_delete_checkpoint()
410 __u64 cno; in nilfs_ioctl_move_blocks() local
415 cno = vdesc->vd_cno; in nilfs_ioctl_move_blocks()
416 inode = nilfs_iget_for_gc(sb, ino, cno); in nilfs_ioctl_move_blocks()
441 vdesc->vd_ino == ino && vdesc->vd_cno == cno); in nilfs_ioctl_move_blocks()
688 __u64 cno; in nilfs_ioctl_sync() local
705 cno = nilfs->ns_cno - 1; in nilfs_ioctl_sync()
707 if (copy_to_user(argp, &cno, sizeof(cno))) in nilfs_ioctl_sync()
Dnamei.c460 static struct dentry *nilfs_get_dentry(struct super_block *sb, u64 cno, in nilfs_get_dentry() argument
469 root = nilfs_lookup_root(sb->s_fs_info, cno); in nilfs_get_dentry()
496 return nilfs_get_dentry(sb, fid->cno, fid->ino, fid->gen); in nilfs_fh_to_dentry()
508 return nilfs_get_dentry(sb, fid->cno, fid->parent_ino, fid->parent_gen); in nilfs_fh_to_parent()
527 fid->cno = root->cno; in nilfs_encode_fh()
Dnilfs.h275 unsigned long ino, __u64 cno);
310 int nilfs_attach_checkpoint(struct super_block *sb, __u64 cno, int curr_mnt,
312 int nilfs_checkpoint_is_mounted(struct super_block *sb, __u64 cno);
Dinode.c46 __u64 cno; member
546 return args->for_gc && args->cno == ii->i_cno; in nilfs_iget_test()
556 NILFS_I(inode)->i_cno = args->cno; in nilfs_iget_set()
570 .ino = ino, .root = root, .cno = 0, .for_gc = 0 in nilfs_ilookup()
580 .ino = ino, .root = root, .cno = 0, .for_gc = 0 in nilfs_iget_locked()
608 __u64 cno) in nilfs_iget_for_gc() argument
611 .ino = ino, .root = NULL, .cno = cno, .for_gc = 1 in nilfs_iget_for_gc()
857 root->cno != NILFS_CPTREE_CURRENT_CNO) in nilfs_permission()
Dsegbuf.c137 time_t ctime, __u64 cno) in nilfs_segbuf_reset() argument
150 segbuf->sb_sum.cno = cno; in nilfs_segbuf_reset()
176 raw_sum->ss_cno = cpu_to_le64(segbuf->sb_sum.cno); in nilfs_segbuf_fill_in_segsum()
Dexport.h17 u64 cno; member
Drecovery.c825 __u64 cno; in nilfs_search_super_root() local
832 cno = nilfs->ns_last_cno; in nilfs_search_super_root()
899 ri->ri_cno = cno++; in nilfs_search_super_root()
908 nilfs->ns_cno = cno; /* nilfs->ns_cno = ri->ri_cno + 1 */ in nilfs_search_super_root()
Dsegbuf.h52 __u64 cno; member
Dsegment.c446 __u64 cno; in nilfs_segctor_end_finfo() local
454 cno = ii->i_cno; in nilfs_segctor_end_finfo()
456 cno = 0; in nilfs_segctor_end_finfo()
458 cno = sci->sc_cno; in nilfs_segctor_end_finfo()
465 finfo->fi_cno = cpu_to_le64(cno); in nilfs_segctor_end_finfo()