| /linux/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() 125 __u64 cno, in nilfs_cpfile_checkpoint_offset() argument 129 nilfs_cpfile_get_offset(cpfile, cno) * in nilfs_cpfile_checkpoint_offset() 145 __u64 cno, in nilfs_cpfile_cp_snapshot_list_offset() argument 148 return nilfs_cpfile_checkpoint_offset(cpfile, cno, bh) + in nilfs_cpfile_cp_snapshot_list_offset() [all …]
|
| H A D | super.c | 552 int nilfs_attach_checkpoint(struct super_block *sb, __u64 cno, int curr_mnt, in nilfs_attach_checkpoint() argument 560 nilfs, curr_mnt ? NILFS_CPTREE_CURRENT_CNO : cno); in nilfs_attach_checkpoint() 568 err = nilfs_ifile_read(sb, root, cno, nilfs->ns_inode_size); in nilfs_attach_checkpoint() 580 (unsigned long long)cno); in nilfs_attach_checkpoint() 689 if (root->cno != NILFS_CPTREE_CURRENT_CNO) in nilfs_show_options() 690 seq_printf(seq, ",cp=%llu", (unsigned long long)root->cno); in nilfs_show_options() 742 __u64 cno; member 791 nilfs->cno = result.uint_64; in nilfs_parse_param() 928 if (root->cno == NILFS_CPTREE_CURRENT_CNO) { in nilfs_get_root_dentry() 955 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() 844 struct nilfs_root *nilfs_lookup_root(struct the_nilfs *nilfs, __u64 cno) in nilfs_lookup_root() argument 854 if (cno < root->cno) { in nilfs_lookup_root() 856 } else if (cno > root->cno) { in nilfs_lookup_root() 870 nilfs_find_or_create_root(struct the_nilfs *nilfs, __u64 cno) in nilfs_find_or_create_root() argument 876 root = nilfs_lookup_root(nilfs, cno); in nilfs_find_or_create_root() 893 if (cno < root->cno) { in nilfs_find_or_create_root() 895 } else if (cno > root->cno) { in nilfs_find_or_create_root() 905 new->cno = cno; in nilfs_find_or_create_root()
|
| H A D | the_nilfs.h | 230 __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()
|
| H A D | cpfile.h | 19 int nilfs_cpfile_read_checkpoint(struct inode *cpfile, __u64 cno, 21 int nilfs_cpfile_create_checkpoint(struct inode *cpfile, __u64 cno); 22 int nilfs_cpfile_finalize_checkpoint(struct inode *cpfile, __u64 cno,
|
| H A D | ioctl.c | 252 __u64 cno; in nilfs_ioctl_delete_checkpoint() local 263 if (copy_from_user(&cno, argp, sizeof(cno))) in nilfs_ioctl_delete_checkpoint() 267 ret = nilfs_cpfile_delete_checkpoint(nilfs->ns_cpfile, cno); in nilfs_ioctl_delete_checkpoint() 600 __u64 cno; in nilfs_ioctl_move_blocks() local 605 cno = vdesc->vd_cno; in nilfs_ioctl_move_blocks() 606 inode = nilfs_iget_for_gc(sb, ino, cno); in nilfs_ioctl_move_blocks() 631 vdesc->vd_ino == ino && vdesc->vd_cno == cno); in nilfs_ioctl_move_blocks() 955 __u64 cno; in nilfs_ioctl_sync() local 970 cno = nilfs->ns_cno - 1; in nilfs_ioctl_sync() 972 if (copy_to_user(argp, &cno, sizeof(cno))) in nilfs_ioctl_sync()
|
| H A D | inode.c | 36 __u64 cno; member 294 .ino = ino, .root = root, .cno = 0, .type = NILFS_I_TYPE_NORMAL in nilfs_insert_inode_locked() 519 return !(args->type & NILFS_I_TYPE_GC) || args->cno == ii->i_cno; in nilfs_iget_test() 527 NILFS_I(inode)->i_cno = args->cno; in nilfs_iget_set() 539 .ino = ino, .root = root, .cno = 0, .type = NILFS_I_TYPE_NORMAL in nilfs_ilookup() 549 .ino = ino, .root = root, .cno = 0, .type = NILFS_I_TYPE_NORMAL in nilfs_iget_locked() 583 __u64 cno) in nilfs_iget_for_gc() argument 586 .ino = ino, .root = NULL, .cno = cno, .type = NILFS_I_TYPE_GC in nilfs_iget_for_gc() 627 args.cno = ii->i_cno; in nilfs_attach_btree_node_cache() 679 .ino = inode->i_ino, .root = NULL, .cno = 0, in nilfs_iget_for_shadow() [all …]
|
| H A D | sysfs.c | 186 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()
|
| H A D | ifile.c | 182 __u64 cno, size_t inode_size) in nilfs_ifile_read() argument 206 err = nilfs_cpfile_read_checkpoint(nilfs->ns_cpfile, cno, root, ifile); in nilfs_ifile_read()
|
| H A D | nilfs.h | 296 unsigned long ino, __u64 cno); 377 int nilfs_attach_checkpoint(struct super_block *sb, __u64 cno, int curr_mnt, 379 int nilfs_checkpoint_is_mounted(struct super_block *sb, __u64 cno);
|
| H A D | export.h | 18 u64 cno; member
|
| H A D | ifile.h | 41 __u64 cno, size_t inode_size);
|
| H A D | recovery.c | 875 __u64 cno; in nilfs_search_super_root() local 882 cno = nilfs->ns_last_cno; in nilfs_search_super_root() 951 ri->ri_cno = cno++; in nilfs_search_super_root() 960 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 | 517 __u64 cno; in nilfs_segctor_end_finfo() local 525 cno = ii->i_cno; in nilfs_segctor_end_finfo() 527 cno = 0; in nilfs_segctor_end_finfo() 529 cno = sci->sc_cno; in nilfs_segctor_end_finfo() 536 finfo->fi_cno = cpu_to_le64(cno); in nilfs_segctor_end_finfo()
|
| /linux/Documentation/filesystems/ |
| H 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/fs/ext4/ |
| H A D | fsmap.c | 93 ext4_grpblk_t cno; in ext4_getfsmap_helper() local 139 &agno, &cno); in ext4_getfsmap_helper() 141 EXT4_C2B(sbi, cno), in ext4_getfsmap_helper() 163 ext4_get_group_no_and_offset(sb, rec_fsblk, &agno, &cno); in ext4_getfsmap_helper() 164 trace_ext4_fsmap_mapping(sb, info->gfi_dev, agno, EXT4_C2B(sbi, cno), in ext4_getfsmap_helper()
|