Home
last modified time | relevance | path

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

/Linux-v6.6/fs/nilfs2/
Dcpfile.c27 nilfs_cpfile_get_blkoff(const struct inode *cpfile, __u64 cno) in nilfs_cpfile_get_blkoff() argument
29 __u64 tcno = cno + NILFS_MDT(cpfile)->mi_first_entry_offset - 1; in nilfs_cpfile_get_blkoff()
37 nilfs_cpfile_get_offset(const struct inode *cpfile, __u64 cno) in nilfs_cpfile_get_offset() argument
39 __u64 tcno = cno + NILFS_MDT(cpfile)->mi_first_entry_offset - 1; in nilfs_cpfile_get_offset()
63 __u64 cno) in nilfs_cpfile_is_in_first() argument
65 return nilfs_cpfile_get_blkoff(cpfile, cno) == 0; in nilfs_cpfile_is_in_first()
106 nilfs_cpfile_block_get_checkpoint(const struct inode *cpfile, __u64 cno, in nilfs_cpfile_block_get_checkpoint() argument
110 return kaddr + bh_offset(bh) + nilfs_cpfile_get_offset(cpfile, cno) * in nilfs_cpfile_block_get_checkpoint()
135 __u64 cno, in nilfs_cpfile_get_checkpoint_block() argument
140 nilfs_cpfile_get_blkoff(cpfile, cno), in nilfs_cpfile_get_checkpoint_block()
[all …]
Dsuper.c542 int nilfs_attach_checkpoint(struct super_block *sb, __u64 cno, int curr_mnt, in nilfs_attach_checkpoint() argument
552 nilfs, curr_mnt ? NILFS_CPTREE_CURRENT_CNO : cno); in nilfs_attach_checkpoint()
560 err = nilfs_cpfile_get_checkpoint(nilfs->ns_cpfile, cno, 0, &raw_cp, in nilfs_attach_checkpoint()
567 (unsigned long long)cno); in nilfs_attach_checkpoint()
583 nilfs_cpfile_put_checkpoint(nilfs->ns_cpfile, cno, bh_cp); in nilfs_attach_checkpoint()
590 nilfs_cpfile_put_checkpoint(nilfs->ns_cpfile, cno, bh_cp); in nilfs_attach_checkpoint()
700 if (root->cno != NILFS_CPTREE_CURRENT_CNO) in nilfs_show_options()
701 seq_printf(seq, ",cp=%llu", (unsigned long long)root->cno); in nilfs_show_options()
949 if (root->cno == NILFS_CPTREE_CURRENT_CNO) { in nilfs_get_root_dentry()
976 static int nilfs_attach_snapshot(struct super_block *s, __u64 cno, in nilfs_attach_snapshot() argument
[all …]
Dthe_nilfs.c30 sector_t start_blocknr, u64 seq, __u64 cno) in nilfs_set_last_segment() argument
35 nilfs->ns_last_cno = cno; in nilfs_set_last_segment()
815 struct nilfs_root *nilfs_lookup_root(struct the_nilfs *nilfs, __u64 cno) in nilfs_lookup_root() argument
825 if (cno < root->cno) { in nilfs_lookup_root()
827 } else if (cno > root->cno) { in nilfs_lookup_root()
841 nilfs_find_or_create_root(struct the_nilfs *nilfs, __u64 cno) in nilfs_find_or_create_root() argument
847 root = nilfs_lookup_root(nilfs, cno); in nilfs_find_or_create_root()
864 if (cno < root->cno) { in nilfs_find_or_create_root()
866 } else if (cno > root->cno) { in nilfs_find_or_create_root()
876 new->cno = cno; in nilfs_find_or_create_root()
Dthe_nilfs.h240 __u64 cno; member
285 struct nilfs_root *nilfs_lookup_root(struct the_nilfs *nilfs, __u64 cno);
287 __u64 cno);
353 __u64 cno; in nilfs_last_cno() local
356 cno = nilfs->ns_last_cno; in nilfs_last_cno()
358 return cno; in nilfs_last_cno()
Dioctl.c247 __u64 cno; in nilfs_ioctl_delete_checkpoint() local
258 if (copy_from_user(&cno, argp, sizeof(cno))) in nilfs_ioctl_delete_checkpoint()
262 ret = nilfs_cpfile_delete_checkpoint(nilfs->ns_cpfile, cno); in nilfs_ioctl_delete_checkpoint()
606 __u64 cno; in nilfs_ioctl_move_blocks() local
611 cno = vdesc->vd_cno; in nilfs_ioctl_move_blocks()
612 inode = nilfs_iget_for_gc(sb, ino, cno); in nilfs_ioctl_move_blocks()
637 vdesc->vd_ino == ino && vdesc->vd_cno == cno); in nilfs_ioctl_move_blocks()
985 __u64 cno; in nilfs_ioctl_sync() local
1000 cno = nilfs->ns_cno - 1; in nilfs_ioctl_sync()
1002 if (copy_to_user(argp, &cno, sizeof(cno))) in nilfs_ioctl_sync()
Dnamei.c458 static struct dentry *nilfs_get_dentry(struct super_block *sb, u64 cno, in nilfs_get_dentry() argument
467 root = nilfs_lookup_root(sb->s_fs_info, cno); in nilfs_get_dentry()
493 return nilfs_get_dentry(sb, fid->cno, fid->ino, fid->gen); in nilfs_fh_to_dentry()
505 return nilfs_get_dentry(sb, fid->cno, fid->parent_ino, fid->parent_gen); in nilfs_fh_to_parent()
524 fid->cno = root->cno; in nilfs_encode_fh()
Dinode.c37 __u64 cno; member
317 .ino = ino, .root = root, .cno = 0, .for_gc = false, in nilfs_insert_inode_locked()
564 return args->for_gc && args->cno == ii->i_cno; in nilfs_iget_test()
572 NILFS_I(inode)->i_cno = args->cno; in nilfs_iget_set()
590 .ino = ino, .root = root, .cno = 0, .for_gc = false, in nilfs_ilookup()
601 .ino = ino, .root = root, .cno = 0, .for_gc = false, in nilfs_iget_locked()
630 __u64 cno) in nilfs_iget_for_gc() argument
633 .ino = ino, .root = NULL, .cno = cno, .for_gc = true, in nilfs_iget_for_gc()
678 args.cno = ii->i_cno; in nilfs_attach_btree_node_cache()
735 .ino = inode->i_ino, .root = NULL, .cno = 0, .for_gc = false, in nilfs_iget_for_shadow()
[all …]
Dsysfs.c186 if (root->cno == NILFS_CPTREE_CURRENT_CNO) { in nilfs_sysfs_create_snapshot_group()
195 "%llu", root->cno); in nilfs_sysfs_create_snapshot_group()
305 __u64 cno; in nilfs_checkpoints_next_checkpoint_show() local
308 cno = nilfs->ns_cno; in nilfs_checkpoints_next_checkpoint_show()
311 return sysfs_emit(buf, "%llu\n", cno); in nilfs_checkpoints_next_checkpoint_show()
548 __u64 cno; in nilfs_segctor_next_checkpoint_show() local
551 cno = nilfs->ns_cno; in nilfs_segctor_next_checkpoint_show()
554 return sysfs_emit(buf, "%llu\n", cno); in nilfs_segctor_next_checkpoint_show()
Dexport.h18 u64 cno; member
Dnilfs.h267 unsigned long ino, __u64 cno);
348 int nilfs_attach_checkpoint(struct super_block *sb, __u64 cno, int curr_mnt,
350 int nilfs_checkpoint_is_mounted(struct super_block *sb, __u64 cno);
Dsegbuf.c130 time64_t ctime, __u64 cno) in nilfs_segbuf_reset() argument
143 segbuf->sb_sum.cno = cno; in nilfs_segbuf_reset()
169 raw_sum->ss_cno = cpu_to_le64(segbuf->sb_sum.cno); in nilfs_segbuf_fill_in_segsum()
Drecovery.c809 __u64 cno; in nilfs_search_super_root() local
816 cno = nilfs->ns_last_cno; in nilfs_search_super_root()
885 ri->ri_cno = cno++; in nilfs_search_super_root()
894 nilfs->ns_cno = cno; /* nilfs->ns_cno = ri->ri_cno + 1 */ in nilfs_search_super_root()
Dsegbuf.h39 __u64 cno; member
Dsegment.c515 __u64 cno; in nilfs_segctor_end_finfo() local
523 cno = ii->i_cno; in nilfs_segctor_end_finfo()
525 cno = 0; in nilfs_segctor_end_finfo()
527 cno = sci->sc_cno; in nilfs_segctor_end_finfo()
534 finfo->fi_cno = cpu_to_le64(cno); in nilfs_segctor_end_finfo()
/Linux-v6.6/Documentation/filesystems/
Dnilfs2.rst177 # mount -t nilfs2 -r -o cp=<cno> /dev/block_device /snap_dir
179 where <cno> is the checkpoint number of the snapshot.
268 Super root block (the latest cno=xx)
272 |-- ifile (cno=c1)
273 |-- ifile (cno=c2) ---- file (ino=i1)
275 `-- ifile (cno=xx) |-- file (ino=i3)
/Linux-v6.6/fs/ext4/
Dfsmap.c92 ext4_grpblk_t cno; in ext4_getfsmap_helper() local
138 &agno, &cno); in ext4_getfsmap_helper()
140 EXT4_C2B(sbi, cno), in ext4_getfsmap_helper()
162 ext4_get_group_no_and_offset(sb, rec_fsblk, &agno, &cno); in ext4_getfsmap_helper()
163 trace_ext4_fsmap_mapping(sb, info->gfi_dev, agno, EXT4_C2B(sbi, cno), in ext4_getfsmap_helper()