| /linux-5.15/fs/nilfs2/ |
| H A D | cpfile.c | 27 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 …]
|
| H A D | super.c | 509 int nilfs_attach_checkpoint(struct super_block *sb, __u64 cno, int curr_mnt, in nilfs_attach_checkpoint() argument 519 nilfs, curr_mnt ? NILFS_CPTREE_CURRENT_CNO : cno); in nilfs_attach_checkpoint() 527 err = nilfs_cpfile_get_checkpoint(nilfs->ns_cpfile, cno, 0, &raw_cp, in nilfs_attach_checkpoint() 534 (unsigned long long)cno); in nilfs_attach_checkpoint() 550 nilfs_cpfile_put_checkpoint(nilfs->ns_cpfile, cno, bh_cp); in nilfs_attach_checkpoint() 557 nilfs_cpfile_put_checkpoint(nilfs->ns_cpfile, cno, bh_cp); in nilfs_attach_checkpoint() 667 if (root->cno != NILFS_CPTREE_CURRENT_CNO) in nilfs_show_options() 668 seq_printf(seq, ",cp=%llu", (unsigned long long)root->cno); in nilfs_show_options() 916 if (root->cno == NILFS_CPTREE_CURRENT_CNO) { in nilfs_get_root_dentry() 943 static int nilfs_attach_snapshot(struct super_block *s, __u64 cno, in nilfs_attach_snapshot() argument [all …]
|
| H A D | the_nilfs.c | 29 sector_t start_blocknr, u64 seq, __u64 cno) in nilfs_set_last_segment() argument 34 nilfs->ns_last_cno = cno; in nilfs_set_last_segment() 711 struct nilfs_root *nilfs_lookup_root(struct the_nilfs *nilfs, __u64 cno) in nilfs_lookup_root() argument 721 if (cno < root->cno) { in nilfs_lookup_root() 723 } else if (cno > root->cno) { in nilfs_lookup_root() 737 nilfs_find_or_create_root(struct the_nilfs *nilfs, __u64 cno) in nilfs_find_or_create_root() argument 743 root = nilfs_lookup_root(nilfs, cno); in nilfs_find_or_create_root() 760 if (cno < root->cno) { in nilfs_find_or_create_root() 762 } else if (cno > root->cno) { in nilfs_find_or_create_root() 772 new->cno = cno; in nilfs_find_or_create_root()
|
| H A D | the_nilfs.h | 238 __u64 cno; member 283 struct nilfs_root *nilfs_lookup_root(struct the_nilfs *nilfs, __u64 cno); 285 __u64 cno); 351 __u64 cno; in nilfs_last_cno() local 354 cno = nilfs->ns_last_cno; in nilfs_last_cno() 356 return cno; in nilfs_last_cno()
|
| H A D | ioctl.c | 247 __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()
|
| H A D | namei.c | 458 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()
|
| H A D | inode.c | 35 __u64 cno; member 317 .ino = ino, .root = root, .cno = 0, .for_gc = 0 in nilfs_insert_inode_locked() 533 return args->for_gc && args->cno == ii->i_cno; in nilfs_iget_test() 543 NILFS_I(inode)->i_cno = args->cno; in nilfs_iget_set() 557 .ino = ino, .root = root, .cno = 0, .for_gc = 0 in nilfs_ilookup() 567 .ino = ino, .root = root, .cno = 0, .for_gc = 0 in nilfs_iget_locked() 595 __u64 cno) in nilfs_iget_for_gc() argument 598 .ino = ino, .root = NULL, .cno = cno, .for_gc = 1 in nilfs_iget_for_gc() 853 root->cno != NILFS_CPTREE_CURRENT_CNO) in nilfs_permission()
|
| A D | sysfs.c | 185 if (root->cno == NILFS_CPTREE_CURRENT_CNO) { in nilfs_sysfs_create_snapshot_group() 194 "%llu", root->cno); in nilfs_sysfs_create_snapshot_group() 303 __u64 cno; in nilfs_checkpoints_next_checkpoint_show() local 306 cno = nilfs->ns_cno; in nilfs_checkpoints_next_checkpoint_show() 309 return snprintf(buf, PAGE_SIZE, "%llu\n", cno); in nilfs_checkpoints_next_checkpoint_show() 544 __u64 cno; in nilfs_segctor_next_checkpoint_show() local 547 cno = nilfs->ns_cno; in nilfs_segctor_next_checkpoint_show() 550 return snprintf(buf, PAGE_SIZE, "%llu\n", cno); in nilfs_segctor_next_checkpoint_show()
|
| H A D | export.h | 18 u64 cno; member
|
| H A D | nilfs.h | 269 unsigned long ino, __u64 cno); 347 int nilfs_attach_checkpoint(struct super_block *sb, __u64 cno, int curr_mnt, 349 int nilfs_checkpoint_is_mounted(struct super_block *sb, __u64 cno);
|
| H A D | segbuf.c | 124 time64_t ctime, __u64 cno) in nilfs_segbuf_reset() argument 137 segbuf->sb_sum.cno = cno; in nilfs_segbuf_reset() 163 raw_sum->ss_cno = cpu_to_le64(segbuf->sb_sum.cno); in nilfs_segbuf_fill_in_segsum()
|
| H A D | recovery.c | 809 __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()
|
| H A D | segbuf.h | 39 __u64 cno; member
|
| H A D | segment.c | 497 __u64 cno; in nilfs_segctor_end_finfo() local 505 cno = ii->i_cno; in nilfs_segctor_end_finfo() 507 cno = 0; in nilfs_segctor_end_finfo() 509 cno = sci->sc_cno; in nilfs_segctor_end_finfo() 516 finfo->fi_cno = cpu_to_le64(cno); in nilfs_segctor_end_finfo()
|
| /linux-5.15/Documentation/filesystems/ |
| A D | nilfs2.rst | 177 # 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-5.15/fs/ext4/ |
| A D | fsmap.c | 92 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()
|