/Linux-v5.4/fs/nilfs2/ |
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 …]
|
D | super.c | 504 int nilfs_attach_checkpoint(struct super_block *sb, __u64 cno, int curr_mnt, in nilfs_attach_checkpoint() argument 514 nilfs, curr_mnt ? NILFS_CPTREE_CURRENT_CNO : cno); in nilfs_attach_checkpoint() 522 err = nilfs_cpfile_get_checkpoint(nilfs->ns_cpfile, cno, 0, &raw_cp, in nilfs_attach_checkpoint() 529 (unsigned long long)cno); in nilfs_attach_checkpoint() 545 nilfs_cpfile_put_checkpoint(nilfs->ns_cpfile, cno, bh_cp); in nilfs_attach_checkpoint() 552 nilfs_cpfile_put_checkpoint(nilfs->ns_cpfile, cno, bh_cp); in nilfs_attach_checkpoint() 664 if (root->cno != NILFS_CPTREE_CURRENT_CNO) in nilfs_show_options() 665 seq_printf(seq, ",cp=%llu", (unsigned long long)root->cno); in nilfs_show_options() 914 if (root->cno == NILFS_CPTREE_CURRENT_CNO) { in nilfs_get_root_dentry() 941 static int nilfs_attach_snapshot(struct super_block *s, __u64 cno, in nilfs_attach_snapshot() argument [all …]
|
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() 716 struct nilfs_root *nilfs_lookup_root(struct the_nilfs *nilfs, __u64 cno) in nilfs_lookup_root() argument 726 if (cno < root->cno) { in nilfs_lookup_root() 728 } else if (cno > root->cno) { in nilfs_lookup_root() 742 nilfs_find_or_create_root(struct the_nilfs *nilfs, __u64 cno) in nilfs_find_or_create_root() argument 748 root = nilfs_lookup_root(nilfs, cno); in nilfs_find_or_create_root() 765 if (cno < root->cno) { in nilfs_find_or_create_root() 767 } else if (cno > root->cno) { in nilfs_find_or_create_root() 777 new->cno = cno; in nilfs_find_or_create_root()
|
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()
|
D | ioctl.c | 262 __u64 cno; in nilfs_ioctl_delete_checkpoint() local 273 if (copy_from_user(&cno, argp, sizeof(cno))) in nilfs_ioctl_delete_checkpoint() 277 ret = nilfs_cpfile_delete_checkpoint(nilfs->ns_cpfile, cno); in nilfs_ioctl_delete_checkpoint() 621 __u64 cno; in nilfs_ioctl_move_blocks() local 626 cno = vdesc->vd_cno; in nilfs_ioctl_move_blocks() 627 inode = nilfs_iget_for_gc(sb, ino, cno); in nilfs_ioctl_move_blocks() 652 vdesc->vd_ino == ino && vdesc->vd_cno == cno); in nilfs_ioctl_move_blocks() 1001 __u64 cno; in nilfs_ioctl_sync() local 1016 cno = nilfs->ns_cno - 1; in nilfs_ioctl_sync() 1018 if (copy_to_user(argp, &cno, sizeof(cno))) in nilfs_ioctl_sync()
|
D | namei.c | 456 static struct dentry *nilfs_get_dentry(struct super_block *sb, u64 cno, in nilfs_get_dentry() argument 465 root = nilfs_lookup_root(sb->s_fs_info, cno); in nilfs_get_dentry() 491 return nilfs_get_dentry(sb, fid->cno, fid->ino, fid->gen); in nilfs_fh_to_dentry() 503 return nilfs_get_dentry(sb, fid->cno, fid->parent_ino, fid->parent_gen); in nilfs_fh_to_parent() 522 fid->cno = root->cno; in nilfs_encode_fh()
|
D | inode.c | 34 __u64 cno; member 325 .ino = ino, .root = root, .cno = 0, .for_gc = 0 in nilfs_insert_inode_locked() 540 return args->for_gc && args->cno == ii->i_cno; in nilfs_iget_test() 550 NILFS_I(inode)->i_cno = args->cno; in nilfs_iget_set() 564 .ino = ino, .root = root, .cno = 0, .for_gc = 0 in nilfs_ilookup() 574 .ino = ino, .root = root, .cno = 0, .for_gc = 0 in nilfs_iget_locked() 602 __u64 cno) in nilfs_iget_for_gc() argument 605 .ino = ino, .root = NULL, .cno = cno, .for_gc = 1 in nilfs_iget_for_gc() 859 root->cno != NILFS_CPTREE_CURRENT_CNO) in nilfs_permission()
|
D | sysfs.c | 200 if (root->cno == NILFS_CPTREE_CURRENT_CNO) { in nilfs_sysfs_create_snapshot_group() 209 "%llu", root->cno); in nilfs_sysfs_create_snapshot_group() 318 __u64 cno; in nilfs_checkpoints_next_checkpoint_show() local 321 cno = nilfs->ns_cno; in nilfs_checkpoints_next_checkpoint_show() 324 return snprintf(buf, PAGE_SIZE, "%llu\n", cno); in nilfs_checkpoints_next_checkpoint_show() 559 __u64 cno; in nilfs_segctor_next_checkpoint_show() local 562 cno = nilfs->ns_cno; in nilfs_segctor_next_checkpoint_show() 565 return snprintf(buf, PAGE_SIZE, "%llu\n", cno); in nilfs_segctor_next_checkpoint_show()
|
D | nilfs.h | 266 unsigned long ino, __u64 cno); 334 int nilfs_attach_checkpoint(struct super_block *sb, __u64 cno, int curr_mnt, 336 int nilfs_checkpoint_is_mounted(struct super_block *sb, __u64 cno);
|
D | export.h | 18 u64 cno; member
|
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()
|
D | recovery.c | 813 __u64 cno; in nilfs_search_super_root() local 820 cno = nilfs->ns_last_cno; in nilfs_search_super_root() 889 ri->ri_cno = cno++; in nilfs_search_super_root() 898 nilfs->ns_cno = cno; /* nilfs->ns_cno = ri->ri_cno + 1 */ in nilfs_search_super_root()
|
D | segbuf.h | 39 __u64 cno; member
|
D | segment.c | 502 __u64 cno; in nilfs_segctor_end_finfo() local 510 cno = ii->i_cno; in nilfs_segctor_end_finfo() 512 cno = 0; in nilfs_segctor_end_finfo() 514 cno = sci->sc_cno; in nilfs_segctor_end_finfo() 521 finfo->fi_cno = cpu_to_le64(cno); in nilfs_segctor_end_finfo()
|
/Linux-v5.4/Documentation/filesystems/ |
D | nilfs2.txt | 167 # mount -t nilfs2 -r -o cp=<cno> /dev/block_device /snap_dir 169 where <cno> is the checkpoint number of the snapshot. 258 Super root block (the latest cno=xx) 262 |-- ifile (cno=c1) 263 |-- ifile (cno=c2) ---- file (ino=i1) 265 `-- ifile (cno=xx) |-- file (ino=i3)
|
/Linux-v5.4/fs/ext4/ |
D | fsmap.c | 92 ext4_grpblk_t cno; in ext4_getfsmap_helper() local 135 &agno, &cno); in ext4_getfsmap_helper() 137 EXT4_C2B(sbi, cno), in ext4_getfsmap_helper() 159 ext4_get_group_no_and_offset(sb, rec_fsblk, &agno, &cno); in ext4_getfsmap_helper() 160 trace_ext4_fsmap_mapping(sb, info->gfi_dev, agno, EXT4_C2B(sbi, cno), in ext4_getfsmap_helper()
|