/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 | 535 int nilfs_attach_checkpoint(struct super_block *sb, __u64 cno, int curr_mnt, in nilfs_attach_checkpoint() argument 545 nilfs, curr_mnt ? NILFS_CPTREE_CURRENT_CNO : cno); in nilfs_attach_checkpoint() 553 err = nilfs_cpfile_get_checkpoint(nilfs->ns_cpfile, cno, 0, &raw_cp, in nilfs_attach_checkpoint() 560 (unsigned long long)cno); in nilfs_attach_checkpoint() 576 nilfs_cpfile_put_checkpoint(nilfs->ns_cpfile, cno, bh_cp); in nilfs_attach_checkpoint() 583 nilfs_cpfile_put_checkpoint(nilfs->ns_cpfile, cno, bh_cp); in nilfs_attach_checkpoint() 694 if (root->cno != NILFS_CPTREE_CURRENT_CNO) in nilfs_show_options() 695 seq_printf(seq, ",cp=%llu", (unsigned long long)root->cno); in nilfs_show_options() 943 if (root->cno == NILFS_CPTREE_CURRENT_CNO) { in nilfs_get_root_dentry() 970 static int nilfs_attach_snapshot(struct super_block *s, __u64 cno, in nilfs_attach_snapshot() argument [all …]
|
D | the_nilfs.c | 30 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() 786 struct nilfs_root *nilfs_lookup_root(struct the_nilfs *nilfs, __u64 cno) in nilfs_lookup_root() argument 796 if (cno < root->cno) { in nilfs_lookup_root() 798 } else if (cno > root->cno) { in nilfs_lookup_root() 812 nilfs_find_or_create_root(struct the_nilfs *nilfs, __u64 cno) in nilfs_find_or_create_root() argument 818 root = nilfs_lookup_root(nilfs, cno); in nilfs_find_or_create_root() 835 if (cno < root->cno) { in nilfs_find_or_create_root() 837 } else if (cno > root->cno) { in nilfs_find_or_create_root() 847 new->cno = cno; in nilfs_find_or_create_root()
|
D | the_nilfs.h | 240 __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()
|
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() 1000 __u64 cno; in nilfs_ioctl_sync() local 1015 cno = nilfs->ns_cno - 1; in nilfs_ioctl_sync() 1017 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 | 36 __u64 cno; member 329 .ino = ino, .root = root, .cno = 0, .for_gc = false, in nilfs_insert_inode_locked() 576 return args->for_gc && args->cno == ii->i_cno; in nilfs_iget_test() 584 NILFS_I(inode)->i_cno = args->cno; in nilfs_iget_set() 602 .ino = ino, .root = root, .cno = 0, .for_gc = false, in nilfs_ilookup() 613 .ino = ino, .root = root, .cno = 0, .for_gc = false, in nilfs_iget_locked() 642 __u64 cno) in nilfs_iget_for_gc() argument 645 .ino = ino, .root = NULL, .cno = cno, .for_gc = true, in nilfs_iget_for_gc() 690 args.cno = ii->i_cno; in nilfs_attach_btree_node_cache() 747 .ino = inode->i_ino, .root = NULL, .cno = 0, .for_gc = false, in nilfs_iget_for_shadow() [all …]
|
D | sysfs.c | 198 if (root->cno == NILFS_CPTREE_CURRENT_CNO) { in nilfs_sysfs_create_snapshot_group() 207 "%llu", root->cno); in nilfs_sysfs_create_snapshot_group() 316 __u64 cno; in nilfs_checkpoints_next_checkpoint_show() local 319 cno = nilfs->ns_cno; in nilfs_checkpoints_next_checkpoint_show() 322 return snprintf(buf, PAGE_SIZE, "%llu\n", cno); in nilfs_checkpoints_next_checkpoint_show() 557 __u64 cno; in nilfs_segctor_next_checkpoint_show() local 560 cno = nilfs->ns_cno; in nilfs_segctor_next_checkpoint_show() 563 return snprintf(buf, PAGE_SIZE, "%llu\n", cno); in nilfs_segctor_next_checkpoint_show()
|
D | nilfs.h | 264 unsigned long ino, __u64 cno); 344 int nilfs_attach_checkpoint(struct super_block *sb, __u64 cno, int curr_mnt, 346 int nilfs_checkpoint_is_mounted(struct super_block *sb, __u64 cno);
|
D | segbuf.c | 130 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()
|
D | export.h | 18 u64 cno; member
|
D | recovery.c | 810 __u64 cno; in nilfs_search_super_root() local 817 cno = nilfs->ns_last_cno; in nilfs_search_super_root() 886 ri->ri_cno = cno++; in nilfs_search_super_root() 895 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 | 520 __u64 cno; in nilfs_segctor_end_finfo() local 528 cno = ii->i_cno; in nilfs_segctor_end_finfo() 530 cno = 0; in nilfs_segctor_end_finfo() 532 cno = sci->sc_cno; in nilfs_segctor_end_finfo() 539 finfo->fi_cno = cpu_to_le64(cno); in nilfs_segctor_end_finfo()
|
/fs/ext4/ |
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()
|