/openbmc/linux/fs/nilfs2/ |
H A D | the_nilfs.c | 38 if (nilfs->ns_prev_seq == nilfs->ns_last_seq) in nilfs_set_last_segment() 43 nilfs->ns_prev_seq = nilfs->ns_last_seq; in nilfs_set_last_segment() 60 nilfs = kzalloc(sizeof(*nilfs), GFP_KERNEL); in alloc_nilfs() 180 nilfs->ns_prev_seq = nilfs->ns_last_seq; in nilfs_store_log_cursor() 181 nilfs->ns_seg_seq = nilfs->ns_last_seq; in nilfs_store_log_cursor() 184 nilfs->ns_cno = nilfs->ns_last_cno + 1; in nilfs_store_log_cursor() 571 nilfs->ns_sbh[0] = nilfs->ns_sbh[1]; in nilfs_fall_back_super_block() 572 nilfs->ns_sbp[0] = nilfs->ns_sbp[1]; in nilfs_fall_back_super_block() 582 nilfs->ns_sbh[0] = nilfs->ns_sbh[1]; in nilfs_swap_super_block() 583 nilfs->ns_sbp[0] = nilfs->ns_sbp[1]; in nilfs_swap_super_block() [all …]
|
H A D | the_nilfs.h | 221 #define nilfs_test_opt(nilfs, opt) ((nilfs)->ns_mount_opt & NILFS_MOUNT_##opt) argument 244 struct the_nilfs *nilfs; member 266 t > nilfs->ns_sbwtime + nilfs->ns_sb_update_freq; in nilfs_sb_need_update() 303 down_read(&nilfs->ns_sem); in nilfs_valid_fs() 305 up_read(&nilfs->ns_sem); in nilfs_valid_fs() 346 nilfs->ns_segnum = nilfs->ns_nextnum; in nilfs_shift_to_next_segment() 347 nilfs->ns_pseg_offset = 0; in nilfs_shift_to_next_segment() 348 nilfs->ns_seg_seq++; in nilfs_shift_to_next_segment() 356 cno = nilfs->ns_last_cno; in nilfs_last_cno() 363 return n == nilfs->ns_segnum || n == nilfs->ns_nextnum; in nilfs_segment_is_active() [all …]
|
H A D | sysfs.c | 177 struct the_nilfs *nilfs; in nilfs_sysfs_create_snapshot_group() local 181 nilfs = root->nilfs; in nilfs_sysfs_create_snapshot_group() 308 cno = nilfs->ns_cno; in nilfs_checkpoints_next_checkpoint_show() 551 cno = nilfs->ns_cno; in nilfs_segctor_next_checkpoint_show() 565 ctime = nilfs->ns_ctime; in nilfs_segctor_last_seg_write_time_show() 579 ctime = nilfs->ns_ctime; in nilfs_segctor_last_seg_write_time_secs_show() 715 up_read(&nilfs->ns_sem); in nilfs_superblock_sb_write_time_show() 729 up_read(&nilfs->ns_sem); in nilfs_superblock_sb_write_time_secs_show() 743 up_read(&nilfs->ns_sem); in nilfs_superblock_sb_write_count_show() 757 up_read(&nilfs->ns_sem); in nilfs_superblock_sb_update_frequency_show() [all …]
|
H A D | super.c | 195 memcpy(nilfs->ns_sbp[1], nilfs->ns_sbp[0], in nilfs_sync_super() 203 nilfs->ns_sbwcount++; in nilfs_sync_super() 351 nilfs->ns_sbh[1]->b_blocknr > nilfs->ns_first_data_block) { in nilfs_move_2nd_super() 354 } else if (nilfs->ns_sbh[0]->b_blocknr > nilfs->ns_first_data_block) { in nilfs_move_2nd_super() 385 memcpy(nsbp, nilfs->ns_sbp[sb2i], nilfs->ns_sbsize); in nilfs_move_2nd_super() 404 } else if (nilfs->ns_sbh[0]->b_blocknr < nilfs->ns_first_data_block) { in nilfs_move_2nd_super() 510 iput(nilfs->ns_dat); in nilfs_put_super() 629 struct the_nilfs *nilfs = root->nilfs; in nilfs_statfs() local 644 blocks = nilfs->ns_blocks_per_segment * nilfs->ns_nsegments in nilfs_statfs() 646 nrsvblocks = nilfs->ns_nrsvsegs * nilfs->ns_blocks_per_segment; in nilfs_statfs() [all …]
|
H A D | recovery.c | 139 bh_sr = __bread(nilfs->ns_bdev, sr_block, nilfs->ns_blocksize); in nilfs_read_super_root_block() 186 bh_sum = __bread(nilfs->ns_bdev, start_blocknr, nilfs->ns_blocksize); in nilfs_read_log_header() 321 bh = __bread(nilfs->ns_bdev, start_blocknr, nilfs->ns_blocksize); in nilfs_scan_dsync_log() 466 nilfs->ns_nextnum = nilfs->ns_segnum = segnum[0]; in nilfs_prepare_segment_for_recovery() 481 bh_org = __bread(nilfs->ns_bdev, rb->blocknr, nilfs->ns_blocksize); in nilfs_recovery_copy_block() 622 nilfs->ns_nongc_ctime = nilfs->ns_ctime; in nilfs_do_roll_forward() 700 bh = __getblk(nilfs->ns_bdev, ri->ri_lsegs_start, nilfs->ns_blocksize); in nilfs_finish_roll_forward() 706 nilfs_warn(nilfs->ns_sb, in nilfs_finish_roll_forward() 817 cno = nilfs->ns_last_cno; in nilfs_search_super_root() 826 __breadahead(nilfs->ns_bdev, b++, nilfs->ns_blocksize); in nilfs_search_super_root() [all …]
|
H A D | ioctl.c | 296 up_read(&nilfs->ns_segctor_sem); in nilfs_ioctl_do_get_cpinfo() 330 up_read(&nilfs->ns_segctor_sem); in nilfs_ioctl_get_cpstat() 363 up_read(&nilfs->ns_segctor_sem); in nilfs_ioctl_do_get_suinfo() 397 up_read(&nilfs->ns_segctor_sem); in nilfs_ioctl_get_sustat() 429 up_read(&nilfs->ns_segctor_sem); in nilfs_ioctl_do_get_vinfo() 625 &nilfs->ns_gc_inodes); in nilfs_ioctl_move_blocks() 856 struct the_nilfs *nilfs; in nilfs_ioctl_clean_segments() local 944 clear_nilfs_gc_running(nilfs); in nilfs_ioctl_clean_segments() 987 struct the_nilfs *nilfs; in nilfs_ioctl_sync() local 1000 cno = nilfs->ns_cno - 1; in nilfs_ioctl_sync() [all …]
|
H A D | segment.c | 205 struct the_nilfs *nilfs; in nilfs_transaction_begin() local 222 nilfs = sb->s_fs_info; in nilfs_transaction_begin() 270 if (nilfs->ns_writer) { in nilfs_transaction_commit() 892 err = nilfs_cpfile_get_checkpoint(nilfs->ns_cpfile, nilfs->ns_cno, 1, in nilfs_segctor_create_checkpoint() 903 nilfs->ns_cpfile, nilfs->ns_cno, bh_cp); in nilfs_segctor_create_checkpoint() 919 err = nilfs_cpfile_get_checkpoint(nilfs->ns_cpfile, nilfs->ns_cno, 0, in nilfs_segctor_fill_in_checkpoint() 947 nilfs_cpfile_put_checkpoint(nilfs->ns_cpfile, nilfs->ns_cno, bh_cp); in nilfs_segctor_fill_in_checkpoint() 1326 nilfs->ns_pseg_offset, nilfs); in nilfs_segctor_begin_construction() 1329 nilfs_segbuf_map(segbuf, nilfs->ns_segnum, 0, nilfs); in nilfs_segctor_begin_construction() 1335 if (nilfs->ns_segnum == nilfs->ns_nextnum) in nilfs_segctor_begin_construction() [all …]
|
H A D | sufile.c | 617 sustat->ss_ctime = nilfs->ns_ctime; in nilfs_sufile_get_stat() 619 spin_lock(&nilfs->ns_last_segment_lock); in nilfs_sufile_get_stat() 620 sustat->ss_prot_seq = nilfs->ns_prot_seq; in nilfs_sufile_get_stat() 621 spin_unlock(&nilfs->ns_last_segment_lock); in nilfs_sufile_get_stat() 794 nrsvsegs = nilfs_nrsvsegs(nilfs, newnsegs); in nilfs_sufile_resize() 828 nilfs_set_nsegments(nilfs, newnsegs); in nilfs_sufile_resize() 949 if (sup->sup_segnum >= nilfs->ns_nsegments in nilfs_sufile_set_suinfo() 954 nilfs->ns_blocks_per_segment)) in nilfs_sufile_set_suinfo() 1073 bdev_logical_block_size(nilfs->ns_bdev); in nilfs_sufile_trim_fs() 1076 max_blocks = ((u64)nilfs->ns_nsegments * nilfs->ns_blocks_per_segment); in nilfs_sufile_trim_fs() [all …]
|
H A D | inode.c | 387 spin_lock(&nilfs->ns_next_gen_lock); in nilfs_new_inode() 920 struct the_nilfs *nilfs; in nilfs_evict_inode() local 933 nilfs = sb->s_fs_info; in nilfs_evict_inode() 1027 spin_lock(&nilfs->ns_inode_lock); in nilfs_load_inode_block() 1029 spin_unlock(&nilfs->ns_inode_lock); in nilfs_load_inode_block() 1034 spin_lock(&nilfs->ns_inode_lock); in nilfs_load_inode_block() 1048 spin_unlock(&nilfs->ns_inode_lock); in nilfs_load_inode_block() 1059 spin_lock(&nilfs->ns_inode_lock); in nilfs_inode_dirty() 1077 spin_lock(&nilfs->ns_inode_lock); in nilfs_set_file_dirty() 1101 spin_unlock(&nilfs->ns_inode_lock); in nilfs_set_file_dirty() [all …]
|
H A D | segbuf.c | 21 struct the_nilfs *nilfs; member 31 struct the_nilfs *nilfs); 61 unsigned long offset, struct the_nilfs *nilfs) in nilfs_segbuf_map() argument 89 __u64 nextnum, struct the_nilfs *nilfs) in nilfs_segbuf_set_next_segnum() argument 235 struct the_nilfs *nilfs = segbuf->sb_super->s_fs_info; in nilfs_segbuf_fill_in_super_root_crc() local 240 srsize = NILFS_SR_BYTES(nilfs->ns_inode_size); in nilfs_segbuf_fill_in_super_root_crc() 294 ret = nilfs_segbuf_write(segbuf, nilfs); in nilfs_write_logs() 382 wi->bio = bio_alloc(wi->nilfs->ns_bdev, wi->nr_vecs, in nilfs_segbuf_submit_bh() 385 (wi->nilfs->ns_blocksize_bits - 9); in nilfs_segbuf_submit_bh() 414 struct the_nilfs *nilfs) in nilfs_segbuf_write() argument [all …]
|
H A D | gcinode.c | 73 struct the_nilfs *nilfs = inode->i_sb->s_fs_info; in nilfs_gccache_submit_read_data() local 75 err = nilfs_dat_translate(nilfs->ns_dat, vbn, &pbn); in nilfs_gccache_submit_read_data() 179 void nilfs_remove_all_gcinodes(struct the_nilfs *nilfs) in nilfs_remove_all_gcinodes() argument 181 struct list_head *head = &nilfs->ns_gc_inodes; in nilfs_remove_all_gcinodes()
|
H A D | file.c | 26 struct the_nilfs *nilfs; in nilfs_sync_file() local 38 nilfs = inode->i_sb->s_fs_info; in nilfs_sync_file() 40 err = nilfs_flush_device(nilfs); in nilfs_sync_file()
|
H A D | btnode.c | 94 struct the_nilfs *nilfs = inode->i_sb->s_fs_info; in nilfs_btnode_submit_block() local 97 err = nilfs_dat_translate(nilfs->ns_dat, blocknr, in nilfs_btnode_submit_block()
|
H A D | segment.h | 245 int nilfs_salvage_orphan_logs(struct the_nilfs *nilfs, struct super_block *sb,
|
H A D | segbuf.h | 163 int nilfs_write_logs(struct list_head *logs, struct the_nilfs *nilfs);
|
H A D | bmap.c | 24 struct the_nilfs *nilfs = bmap->b_inode->i_sb->s_fs_info; in nilfs_bmap_get_dat() local 26 return nilfs->ns_dat; in nilfs_bmap_get_dat()
|
H A D | nilfs.h | 359 void nilfs_remove_all_gcinodes(struct the_nilfs *nilfs);
|
/openbmc/linux/Documentation/filesystems/ |
H A D | nilfs2.rst | 25 The userland tools are included in nilfs-utils package, which is 31 :Project web page: https://nilfs.sourceforge.io/ 32 :Download page: https://nilfs.sourceforge.io/en/download.html 33 :List info: http://vger.kernel.org/vger-lists.html#linux-nilfs 56 if nilfs gets an error on a barrier write, it will 166 Their manpages are included in the nilfs-utils package above.
|
/openbmc/linux/ |
H A D | MAINTAINERS | 15080 L: linux-nilfs@vger.kernel.org 15082 W: https://nilfs.sourceforge.io/ 15083 W: https://nilfs.osdn.jp/
|