Home
last modified time | relevance | path

Searched refs:cno (Results 1 - 25 of 30) sorted by relevance

12

/kernel/linux/linux-5.10/fs/nilfs2/
H A Dcpfile.c27 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()
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()
140 nilfs_cpfile_get_blkoff(cpfile, cno), in nilfs_cpfile_get_checkpoint_block()
62 nilfs_cpfile_is_in_first(const struct inode *cpfile, __u64 cno) nilfs_cpfile_is_in_first() argument
134 nilfs_cpfile_get_checkpoint_block(struct inode *cpfile, __u64 cno, int create, struct buffer_head **bhp) nilfs_cpfile_get_checkpoint_block() argument
182 nilfs_cpfile_delete_checkpoint_block(struct inode *cpfile, __u64 cno) nilfs_cpfile_delete_checkpoint_block() argument
214 nilfs_cpfile_get_checkpoint(struct inode *cpfile, __u64 cno, int create, struct nilfs_checkpoint **cpp, struct buffer_head **bhp) nilfs_cpfile_get_checkpoint() argument
285 nilfs_cpfile_put_checkpoint(struct inode *cpfile, __u64 cno, struct buffer_head *bh) nilfs_cpfile_put_checkpoint() argument
319 __u64 cno; nilfs_cpfile_delete_checkpoints() local
431 __u64 cur_cno = nilfs_mdt_cno(cpfile), cno = *cnop; nilfs_cpfile_do_get_cpinfo() local
580 nilfs_cpfile_delete_checkpoint(struct inode *cpfile, __u64 cno) nilfs_cpfile_delete_checkpoint() argument
598 nilfs_cpfile_block_get_snapshot_list(const struct inode *cpfile, __u64 cno, struct buffer_head *bh, void *kaddr) nilfs_cpfile_block_get_snapshot_list() argument
617 nilfs_cpfile_set_snapshot(struct inode *cpfile, __u64 cno) nilfs_cpfile_set_snapshot() argument
736 nilfs_cpfile_clear_snapshot(struct inode *cpfile, __u64 cno) nilfs_cpfile_clear_snapshot() argument
856 nilfs_cpfile_is_snapshot(struct inode *cpfile, __u64 cno) nilfs_cpfile_is_snapshot() argument
906 nilfs_cpfile_change_cpmode(struct inode *cpfile, __u64 cno, int mode) nilfs_cpfile_change_cpmode() argument
[all...]
H A Dsuper.c541 int nilfs_attach_checkpoint(struct super_block *sb, __u64 cno, int curr_mnt, in nilfs_attach_checkpoint() argument
551 nilfs, curr_mnt ? NILFS_CPTREE_CURRENT_CNO : cno); in nilfs_attach_checkpoint()
559 err = nilfs_cpfile_get_checkpoint(nilfs->ns_cpfile, cno, 0, &raw_cp, in nilfs_attach_checkpoint()
566 (unsigned long long)cno); in nilfs_attach_checkpoint()
582 nilfs_cpfile_put_checkpoint(nilfs->ns_cpfile, cno, bh_cp); in nilfs_attach_checkpoint()
589 nilfs_cpfile_put_checkpoint(nilfs->ns_cpfile, cno, bh_cp); in nilfs_attach_checkpoint()
699 if (root->cno != NILFS_CPTREE_CURRENT_CNO) in nilfs_show_options()
700 seq_printf(seq, ",cp=%llu", (unsigned long long)root->cno); in nilfs_show_options()
948 if (root->cno == NILFS_CPTREE_CURRENT_CNO) { in nilfs_get_root_dentry()
975 static int nilfs_attach_snapshot(struct super_block *s, __u64 cno, in nilfs_attach_snapshot() argument
1024 nilfs_checkpoint_is_mounted(struct super_block *sb, __u64 cno) nilfs_checkpoint_is_mounted() argument
1069 __u64 cno; nilfs_fill_super() local
1220 __u64 cno; global() member
[all...]
H A Dthe_nilfs.h229 * @cno: checkpoint number
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 Dthe_nilfs.c30 sector_t start_blocknr, u64 seq, __u64 cno) in nilfs_set_last_segment()
35 nilfs->ns_last_cno = cno; in nilfs_set_last_segment()
820 struct nilfs_root *nilfs_lookup_root(struct the_nilfs *nilfs, __u64 cno) in nilfs_lookup_root() argument
830 if (cno < root->cno) { in nilfs_lookup_root()
832 } else if (cno > root->cno) { in nilfs_lookup_root()
846 nilfs_find_or_create_root(struct the_nilfs *nilfs, __u64 cno) in nilfs_find_or_create_root() argument
852 root = nilfs_lookup_root(nilfs, cno); in nilfs_find_or_create_root()
869 if (cno < roo in nilfs_find_or_create_root()
29 nilfs_set_last_segment(struct the_nilfs *nilfs, sector_t start_blocknr, u64 seq, __u64 cno) nilfs_set_last_segment() argument
[all...]
H A Dioctl.c262 __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()
573 "%s: invalid virtual block address (%s): ino=%llu, cno=%llu, offset=%llu, blocknr=%llu, vblocknr=%llu", in nilfs_ioctl_move_inode_block()
584 "%s: conflicting %s buffer: ino=%llu, cno=%llu, offset=%llu, blocknr=%llu, vblocknr=%llu", in nilfs_ioctl_move_inode_block()
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; nilfs_ioctl_sync() local
[all...]
H A Dnamei.c456 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()
H A Dinode.c29 * @cno: checkpoint number
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()
634 __u64 cno) in nilfs_iget_for_gc()
637 .ino = ino, .root = NULL, .cno = cno, in nilfs_iget_for_gc()
633 nilfs_iget_for_gc(struct super_block *sb, unsigned long ino, __u64 cno) nilfs_iget_for_gc() argument
[all...]
H A Dsysfs.c198 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()
H A Dexport.h11 * @cno: checkpoint number
18 u64 cno; member
H A Dnilfs.h264 unsigned long ino, __u64 cno);
343 int nilfs_attach_checkpoint(struct super_block *sb, __u64 cno, int curr_mnt,
345 int nilfs_checkpoint_is_mounted(struct super_block *sb, __u64 cno);
H A Dsegbuf.c130 time64_t ctime, __u64 cno) in nilfs_segbuf_reset()
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()
129 nilfs_segbuf_reset(struct nilfs_segment_buffer *segbuf, unsigned int flags, time64_t ctime, __u64 cno) nilfs_segbuf_reset() argument
H A Dsegbuf.h27 * @cno: Checkpoint number
39 __u64 cno; member
/kernel/linux/linux-6.6/fs/nilfs2/
H A Dcpfile.c27 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()
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()
140 nilfs_cpfile_get_blkoff(cpfile, cno), in nilfs_cpfile_get_checkpoint_block()
62 nilfs_cpfile_is_in_first(const struct inode *cpfile, __u64 cno) nilfs_cpfile_is_in_first() argument
134 nilfs_cpfile_get_checkpoint_block(struct inode *cpfile, __u64 cno, int create, struct buffer_head **bhp) nilfs_cpfile_get_checkpoint_block() argument
182 nilfs_cpfile_delete_checkpoint_block(struct inode *cpfile, __u64 cno) nilfs_cpfile_delete_checkpoint_block() argument
214 nilfs_cpfile_get_checkpoint(struct inode *cpfile, __u64 cno, int create, struct nilfs_checkpoint **cpp, struct buffer_head **bhp) nilfs_cpfile_get_checkpoint() argument
285 nilfs_cpfile_put_checkpoint(struct inode *cpfile, __u64 cno, struct buffer_head *bh) nilfs_cpfile_put_checkpoint() argument
319 __u64 cno; nilfs_cpfile_delete_checkpoints() local
431 __u64 cur_cno = nilfs_mdt_cno(cpfile), cno = *cnop; nilfs_cpfile_do_get_cpinfo() local
580 nilfs_cpfile_delete_checkpoint(struct inode *cpfile, __u64 cno) nilfs_cpfile_delete_checkpoint() argument
598 nilfs_cpfile_block_get_snapshot_list(const struct inode *cpfile, __u64 cno, struct buffer_head *bh, void *kaddr) nilfs_cpfile_block_get_snapshot_list() argument
617 nilfs_cpfile_set_snapshot(struct inode *cpfile, __u64 cno) nilfs_cpfile_set_snapshot() argument
736 nilfs_cpfile_clear_snapshot(struct inode *cpfile, __u64 cno) nilfs_cpfile_clear_snapshot() argument
856 nilfs_cpfile_is_snapshot(struct inode *cpfile, __u64 cno) nilfs_cpfile_is_snapshot() argument
906 nilfs_cpfile_change_cpmode(struct inode *cpfile, __u64 cno, int mode) nilfs_cpfile_change_cpmode() argument
[all...]
H A Dsuper.c542 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
1025 nilfs_checkpoint_is_mounted(struct super_block *sb, __u64 cno) nilfs_checkpoint_is_mounted() argument
1070 __u64 cno; nilfs_fill_super() local
1220 __u64 cno; global() member
[all...]
H A Dthe_nilfs.h229 * @cno: checkpoint number
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 Dthe_nilfs.c30 sector_t start_blocknr, u64 seq, __u64 cno) in nilfs_set_last_segment()
35 nilfs->ns_last_cno = cno; in nilfs_set_last_segment()
819 struct nilfs_root *nilfs_lookup_root(struct the_nilfs *nilfs, __u64 cno) in nilfs_lookup_root() argument
829 if (cno < root->cno) { in nilfs_lookup_root()
831 } else if (cno > root->cno) { in nilfs_lookup_root()
845 nilfs_find_or_create_root(struct the_nilfs *nilfs, __u64 cno) in nilfs_find_or_create_root() argument
851 root = nilfs_lookup_root(nilfs, cno); in nilfs_find_or_create_root()
868 if (cno < roo in nilfs_find_or_create_root()
29 nilfs_set_last_segment(struct the_nilfs *nilfs, sector_t start_blocknr, u64 seq, __u64 cno) nilfs_set_last_segment() argument
[all...]
H A Dioctl.c247 __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()
558 "%s: invalid virtual block address (%s): ino=%llu, cno=%llu, offset=%llu, blocknr=%llu, vblocknr=%llu", in nilfs_ioctl_move_inode_block()
569 "%s: conflicting %s buffer: ino=%llu, cno=%llu, offset=%llu, blocknr=%llu, vblocknr=%llu", in nilfs_ioctl_move_inode_block()
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; nilfs_ioctl_sync() local
[all...]
H A Dnamei.c458 static struct dentry *nilfs_get_dentry(struct super_block *sb, u64 cno, in nilfs_get_dentry() argument
467 root = nilfs_lookup_root(sb->s_fs_info, cno); in nilfs_get_dentry()
493 return nilfs_get_dentry(sb, fid->cno, fid->ino, fid->gen); in nilfs_fh_to_dentry()
505 return nilfs_get_dentry(sb, fid->cno, fid->parent_ino, fid->parent_gen); in nilfs_fh_to_parent()
524 fid->cno = root->cno; in nilfs_encode_fh()
H A Dinode.c29 * @cno: checkpoint number
37 __u64 cno; member
317 .ino = ino, .root = root, .cno = 0, .for_gc = false, in nilfs_insert_inode_locked()
564 return args->for_gc && args->cno == ii->i_cno; in nilfs_iget_test()
572 NILFS_I(inode)->i_cno = args->cno; in nilfs_iget_set()
590 .ino = ino, .root = root, .cno = 0, .for_gc = false, in nilfs_ilookup()
601 .ino = ino, .root = root, .cno = 0, .for_gc = false, in nilfs_iget_locked()
630 __u64 cno) in nilfs_iget_for_gc()
633 .ino = ino, .root = NULL, .cno = cno, in nilfs_iget_for_gc()
629 nilfs_iget_for_gc(struct super_block *sb, unsigned long ino, __u64 cno) nilfs_iget_for_gc() argument
[all...]
H A Dsysfs.c186 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 Dexport.h11 * @cno: checkpoint number
18 u64 cno; member
H A Dnilfs.h267 unsigned long ino, __u64 cno);
348 int nilfs_attach_checkpoint(struct super_block *sb, __u64 cno, int curr_mnt,
350 int nilfs_checkpoint_is_mounted(struct super_block *sb, __u64 cno);
H A Dsegbuf.c130 time64_t ctime, __u64 cno) in nilfs_segbuf_reset()
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()
129 nilfs_segbuf_reset(struct nilfs_segment_buffer *segbuf, unsigned int flags, time64_t ctime, __u64 cno) nilfs_segbuf_reset() argument
/kernel/linux/linux-5.10/fs/ext4/
H A Dfsmap.c92 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()
/kernel/linux/linux-6.6/fs/ext4/
H A Dfsmap.c92 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()

Completed in 24 milliseconds

12