/fs/nilfs2/ |
D | cpfile.c | 41 nilfs_cpfile_get_blkoff(const struct inode *cpfile, __u64 cno) in nilfs_cpfile_get_blkoff() argument 43 __u64 tcno = cno + NILFS_MDT(cpfile)->mi_first_entry_offset - 1; in nilfs_cpfile_get_blkoff() 50 nilfs_cpfile_get_offset(const struct inode *cpfile, __u64 cno) in nilfs_cpfile_get_offset() argument 52 __u64 tcno = cno + NILFS_MDT(cpfile)->mi_first_entry_offset - 1; in nilfs_cpfile_get_offset() 68 __u64 cno) in nilfs_cpfile_is_in_first() argument 70 return nilfs_cpfile_get_blkoff(cpfile, cno) == 0; in nilfs_cpfile_is_in_first() 111 nilfs_cpfile_block_get_checkpoint(const struct inode *cpfile, __u64 cno, in nilfs_cpfile_block_get_checkpoint() argument 115 return kaddr + bh_offset(bh) + nilfs_cpfile_get_offset(cpfile, cno) * in nilfs_cpfile_block_get_checkpoint() 140 __u64 cno, in nilfs_cpfile_get_checkpoint_block() argument 145 nilfs_cpfile_get_blkoff(cpfile, cno), in nilfs_cpfile_get_checkpoint_block() [all …]
|
D | super.c | 520 int nilfs_attach_checkpoint(struct super_block *sb, __u64 cno, int curr_mnt, in nilfs_attach_checkpoint() argument 530 nilfs, curr_mnt ? NILFS_CPTREE_CURRENT_CNO : cno); in nilfs_attach_checkpoint() 538 err = nilfs_cpfile_get_checkpoint(nilfs->ns_cpfile, cno, 0, &raw_cp, in nilfs_attach_checkpoint() 546 (unsigned long long)cno); in nilfs_attach_checkpoint() 560 nilfs_cpfile_put_checkpoint(nilfs->ns_cpfile, cno, bh_cp); in nilfs_attach_checkpoint() 567 nilfs_cpfile_put_checkpoint(nilfs->ns_cpfile, cno, bh_cp); in nilfs_attach_checkpoint() 659 if (root->cno != NILFS_CPTREE_CURRENT_CNO) in nilfs_show_options() 660 seq_printf(seq, ",cp=%llu", (unsigned long long)root->cno); in nilfs_show_options() 917 if (root->cno == NILFS_CPTREE_CURRENT_CNO) { in nilfs_get_root_dentry() 944 static int nilfs_attach_snapshot(struct super_block *s, __u64 cno, in nilfs_attach_snapshot() argument [all …]
|
D | the_nilfs.c | 42 sector_t start_blocknr, u64 seq, __u64 cno) in nilfs_set_last_segment() argument 47 nilfs->ns_last_cno = cno; in nilfs_set_last_segment() 703 struct nilfs_root *nilfs_lookup_root(struct the_nilfs *nilfs, __u64 cno) in nilfs_lookup_root() argument 713 if (cno < root->cno) { in nilfs_lookup_root() 715 } else if (cno > root->cno) { in nilfs_lookup_root() 729 nilfs_find_or_create_root(struct the_nilfs *nilfs, __u64 cno) in nilfs_find_or_create_root() argument 734 root = nilfs_lookup_root(nilfs, cno); in nilfs_find_or_create_root() 751 if (cno < root->cno) { in nilfs_find_or_create_root() 753 } else if (cno > root->cno) { in nilfs_find_or_create_root() 763 new->cno = cno; in nilfs_find_or_create_root()
|
D | the_nilfs.h | 239 __u64 cno; member 277 struct nilfs_root *nilfs_lookup_root(struct the_nilfs *nilfs, __u64 cno); 279 __u64 cno); 345 __u64 cno; in nilfs_last_cno() local 348 cno = nilfs->ns_last_cno; in nilfs_last_cno() 350 return cno; in nilfs_last_cno()
|
D | ioctl.c | 207 __u64 cno; in nilfs_ioctl_delete_checkpoint() local 218 if (copy_from_user(&cno, argp, sizeof(cno))) in nilfs_ioctl_delete_checkpoint() 222 ret = nilfs_cpfile_delete_checkpoint(nilfs->ns_cpfile, cno); in nilfs_ioctl_delete_checkpoint() 410 __u64 cno; in nilfs_ioctl_move_blocks() local 415 cno = vdesc->vd_cno; in nilfs_ioctl_move_blocks() 416 inode = nilfs_iget_for_gc(sb, ino, cno); in nilfs_ioctl_move_blocks() 441 vdesc->vd_ino == ino && vdesc->vd_cno == cno); in nilfs_ioctl_move_blocks() 690 __u64 cno; in nilfs_ioctl_sync() local 701 cno = nilfs->ns_cno - 1; in nilfs_ioctl_sync() 703 if (copy_to_user(argp, &cno, sizeof(cno))) in nilfs_ioctl_sync()
|
D | namei.c | 460 static struct dentry *nilfs_get_dentry(struct super_block *sb, u64 cno, in nilfs_get_dentry() argument 469 root = nilfs_lookup_root(sb->s_fs_info, cno); in nilfs_get_dentry() 496 return nilfs_get_dentry(sb, fid->cno, fid->ino, fid->gen); in nilfs_fh_to_dentry() 508 return nilfs_get_dentry(sb, fid->cno, fid->parent_ino, fid->parent_gen); in nilfs_fh_to_parent() 523 fid->cno = root->cno; in nilfs_encode_fh()
|
D | inode.c | 39 __u64 cno; member 514 return args->for_gc && args->cno == ii->i_cno; in nilfs_iget_test() 524 NILFS_I(inode)->i_cno = args->cno; in nilfs_iget_set() 538 .ino = ino, .root = root, .cno = 0, .for_gc = 0 in nilfs_ilookup() 548 .ino = ino, .root = root, .cno = 0, .for_gc = 0 in nilfs_iget_locked() 576 __u64 cno) in nilfs_iget_for_gc() argument 579 .ino = ino, .root = NULL, .cno = cno, .for_gc = 1 in nilfs_iget_for_gc() 827 root->cno != NILFS_CPTREE_CURRENT_CNO) in nilfs_permission()
|
D | nilfs.h | 262 unsigned long ino, __u64 cno); 296 int nilfs_attach_checkpoint(struct super_block *sb, __u64 cno, int curr_mnt, 298 int nilfs_checkpoint_is_mounted(struct super_block *sb, __u64 cno);
|
D | segbuf.c | 137 time_t ctime, __u64 cno) in nilfs_segbuf_reset() argument 150 segbuf->sb_sum.cno = cno; in nilfs_segbuf_reset() 176 raw_sum->ss_cno = cpu_to_le64(segbuf->sb_sum.cno); in nilfs_segbuf_fill_in_segsum()
|
D | export.h | 9 u64 cno; member
|
D | recovery.c | 824 __u64 cno; in nilfs_search_super_root() local 831 cno = nilfs->ns_last_cno; in nilfs_search_super_root() 898 ri->ri_cno = cno++; in nilfs_search_super_root() 907 nilfs->ns_cno = cno; /* nilfs->ns_cno = ri->ri_cno + 1 */ in nilfs_search_super_root()
|
D | segbuf.h | 52 __u64 cno; member
|
D | segment.c | 443 __u64 cno; in nilfs_segctor_end_finfo() local 451 cno = ii->i_cno; in nilfs_segctor_end_finfo() 453 cno = 0; in nilfs_segctor_end_finfo() 455 cno = sci->sc_cno; in nilfs_segctor_end_finfo() 462 finfo->fi_cno = cpu_to_le64(cno); in nilfs_segctor_end_finfo()
|