/openbmc/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() 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 | 542 int nilfs_attach_checkpoint(struct super_block *sb, __u64 cno, int curr_mnt, in nilfs_attach_checkpoint() argument 552 nilfs, curr_mnt ? NILFS_CPTREE_CURRENT_CNO : cno); in nilfs_attach_checkpoint() 560 err = nilfs_cpfile_get_checkpoint(nilfs->ns_cpfile, cno, 0, &raw_cp, in nilfs_attach_checkpoint() 567 (unsigned long long)cno); in nilfs_attach_checkpoint() 583 nilfs_cpfile_put_checkpoint(nilfs->ns_cpfile, cno, bh_cp); in nilfs_attach_checkpoint() 590 nilfs_cpfile_put_checkpoint(nilfs->ns_cpfile, cno, bh_cp); in nilfs_attach_checkpoint() 700 if (root->cno != NILFS_CPTREE_CURRENT_CNO) in nilfs_show_options() 701 seq_printf(seq, ",cp=%llu", (unsigned long long)root->cno); in nilfs_show_options() 949 if (root->cno == NILFS_CPTREE_CURRENT_CNO) { in nilfs_get_root_dentry() 976 static int nilfs_attach_snapshot(struct super_block *s, __u64 cno, in nilfs_attach_snapshot() argument [all …]
|
H A 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() 825 struct nilfs_root *nilfs_lookup_root(struct the_nilfs *nilfs, __u64 cno) in nilfs_lookup_root() argument 835 if (cno < root->cno) { in nilfs_lookup_root() 837 } else if (cno > root->cno) { in nilfs_lookup_root() 851 nilfs_find_or_create_root(struct the_nilfs *nilfs, __u64 cno) in nilfs_find_or_create_root() argument 857 root = nilfs_lookup_root(nilfs, cno); in nilfs_find_or_create_root() 874 if (cno < root->cno) { in nilfs_find_or_create_root() 876 } else if (cno > root->cno) { in nilfs_find_or_create_root() 886 new->cno = cno; in nilfs_find_or_create_root()
|
H A 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()
|
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 | inode.c | 37 __u64 cno; member 321 .ino = ino, .root = root, .cno = 0, .for_gc = false, in nilfs_insert_inode_locked() 568 return args->for_gc && args->cno == ii->i_cno; in nilfs_iget_test() 576 NILFS_I(inode)->i_cno = args->cno; in nilfs_iget_set() 594 .ino = ino, .root = root, .cno = 0, .for_gc = false, in nilfs_ilookup() 605 .ino = ino, .root = root, .cno = 0, .for_gc = false, in nilfs_iget_locked() 640 __u64 cno) in nilfs_iget_for_gc() argument 643 .ino = ino, .root = NULL, .cno = cno, .for_gc = true, in nilfs_iget_for_gc() 688 args.cno = ii->i_cno; in nilfs_attach_btree_node_cache() 745 .ino = inode->i_ino, .root = NULL, .cno = 0, .for_gc = false, in nilfs_iget_for_shadow() [all …]
|
H A D | namei.c | 482 static struct dentry *nilfs_get_dentry(struct super_block *sb, u64 cno, in nilfs_get_dentry() argument 491 root = nilfs_lookup_root(sb->s_fs_info, cno); in nilfs_get_dentry() 517 return nilfs_get_dentry(sb, fid->cno, fid->ino, fid->gen); in nilfs_fh_to_dentry() 529 return nilfs_get_dentry(sb, fid->cno, fid->parent_ino, fid->parent_gen); in nilfs_fh_to_parent() 548 fid->cno = root->cno; in nilfs_encode_fh()
|
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 | export.h | 18 u64 cno; member
|
H A 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()
|
H A D | nilfs.h | 279 unsigned long ino, __u64 cno); 360 int nilfs_attach_checkpoint(struct super_block *sb, __u64 cno, int curr_mnt, 362 int nilfs_checkpoint_is_mounted(struct super_block *sb, __u64 cno);
|
H A D | recovery.c | 841 __u64 cno; in nilfs_search_super_root() local 848 cno = nilfs->ns_last_cno; in nilfs_search_super_root() 917 ri->ri_cno = cno++; in nilfs_search_super_root() 926 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 | 515 __u64 cno; in nilfs_segctor_end_finfo() local 523 cno = ii->i_cno; in nilfs_segctor_end_finfo() 525 cno = 0; in nilfs_segctor_end_finfo() 527 cno = sci->sc_cno; in nilfs_segctor_end_finfo() 534 finfo->fi_cno = cpu_to_le64(cno); in nilfs_segctor_end_finfo()
|
/openbmc/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)
|
/openbmc/linux/fs/ext4/ |
H 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()
|