Home
last modified time | relevance | path

Searched refs:nilfs (Results 1 – 19 of 19) sorted by relevance

/linux/fs/nilfs2/
A Dthe_nilfs.c37 if (nilfs->ns_prev_seq == nilfs->ns_last_seq) in nilfs_set_last_segment()
42 nilfs->ns_prev_seq = nilfs->ns_last_seq; in nilfs_set_last_segment()
59 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()
469 nilfs->ns_sbh[0] = nilfs->ns_sbh[1]; in nilfs_fall_back_super_block()
470 nilfs->ns_sbp[0] = nilfs->ns_sbp[1]; in nilfs_fall_back_super_block()
480 nilfs->ns_sbh[0] = nilfs->ns_sbh[1]; in nilfs_swap_super_block()
481 nilfs->ns_sbp[0] = nilfs->ns_sbp[1]; in nilfs_swap_super_block()
[all …]
A Dsysfs.c176 struct the_nilfs *nilfs; in nilfs_sysfs_create_snapshot_group() local
180 nilfs = root->nilfs; in nilfs_sysfs_create_snapshot_group()
306 cno = nilfs->ns_cno; in nilfs_checkpoints_next_checkpoint_show()
547 cno = nilfs->ns_cno; in nilfs_segctor_next_checkpoint_show()
561 ctime = nilfs->ns_ctime; in nilfs_segctor_last_seg_write_time_show()
575 ctime = nilfs->ns_ctime; in nilfs_segctor_last_seg_write_time_secs_show()
710 up_read(&nilfs->ns_sem); in nilfs_superblock_sb_write_time_show()
724 up_read(&nilfs->ns_sem); in nilfs_superblock_sb_write_time_secs_show()
738 up_read(&nilfs->ns_sem); in nilfs_superblock_sb_write_count_show()
752 up_read(&nilfs->ns_sem); in nilfs_superblock_sb_update_frequency_show()
[all …]
A Dthe_nilfs.h219 #define nilfs_test_opt(nilfs, opt) ((nilfs)->ns_mount_opt & NILFS_MOUNT_##opt) argument
242 struct the_nilfs *nilfs; member
264 t > nilfs->ns_sbwtime + nilfs->ns_sb_update_freq; in nilfs_sb_need_update()
301 down_read(&nilfs->ns_sem); in nilfs_valid_fs()
303 up_read(&nilfs->ns_sem); in nilfs_valid_fs()
344 nilfs->ns_segnum = nilfs->ns_nextnum; in nilfs_shift_to_next_segment()
345 nilfs->ns_pseg_offset = 0; in nilfs_shift_to_next_segment()
346 nilfs->ns_seg_seq++; in nilfs_shift_to_next_segment()
354 cno = nilfs->ns_last_cno; in nilfs_last_cno()
361 return n == nilfs->ns_segnum || n == nilfs->ns_nextnum; in nilfs_segment_is_active()
[all …]
A Dsuper.c193 memcpy(nilfs->ns_sbp[1], nilfs->ns_sbp[0], in nilfs_sync_super()
201 nilfs->ns_sbwcount++; in nilfs_sync_super()
349 nilfs->ns_sbh[1]->b_blocknr > nilfs->ns_first_data_block) { in nilfs_move_2nd_super()
352 } else if (nilfs->ns_sbh[0]->b_blocknr > nilfs->ns_first_data_block) { in nilfs_move_2nd_super()
377 memcpy(nsbp, nilfs->ns_sbp[sb2i], nilfs->ns_sbsize); in nilfs_move_2nd_super()
381 } else if (nilfs->ns_sbh[0]->b_blocknr < nilfs->ns_first_data_block) { in nilfs_move_2nd_super()
477 iput(nilfs->ns_dat); in nilfs_put_super()
596 struct the_nilfs *nilfs = root->nilfs; in nilfs_statfs() local
611 blocks = nilfs->ns_blocks_per_segment * nilfs->ns_nsegments in nilfs_statfs()
613 nrsvblocks = nilfs->ns_nrsvsegs * nilfs->ns_blocks_per_segment; in nilfs_statfs()
[all …]
A Drecovery.c139 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()
480 bh_org = __bread(nilfs->ns_bdev, rb->blocknr, nilfs->ns_blocksize); in nilfs_recovery_copy_block()
621 nilfs->ns_nongc_ctime = nilfs->ns_ctime; in nilfs_do_roll_forward()
699 bh = __getblk(nilfs->ns_bdev, ri->ri_lsegs_start, nilfs->ns_blocksize); in nilfs_finish_roll_forward()
705 nilfs_warn(nilfs->ns_sb, in nilfs_finish_roll_forward()
816 cno = nilfs->ns_last_cno; in nilfs_search_super_root()
825 __breadahead(nilfs->ns_bdev, b++, nilfs->ns_blocksize); in nilfs_search_super_root()
[all …]
A Dioctl.c296 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 …]
A Dsegment.c205 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()
863 err = nilfs_cpfile_get_checkpoint(nilfs->ns_cpfile, nilfs->ns_cno, 1, in nilfs_segctor_create_checkpoint()
874 nilfs->ns_cpfile, nilfs->ns_cno, bh_cp); in nilfs_segctor_create_checkpoint()
888 err = nilfs_cpfile_get_checkpoint(nilfs->ns_cpfile, nilfs->ns_cno, 0, in nilfs_segctor_fill_in_checkpoint()
912 nilfs_cpfile_put_checkpoint(nilfs->ns_cpfile, nilfs->ns_cno, bh_cp); in nilfs_segctor_fill_in_checkpoint()
1286 nilfs->ns_pseg_offset, nilfs); in nilfs_segctor_begin_construction()
1289 nilfs_segbuf_map(segbuf, nilfs->ns_segnum, 0, nilfs); in nilfs_segctor_begin_construction()
1295 if (nilfs->ns_segnum == nilfs->ns_nextnum) in nilfs_segctor_begin_construction()
[all …]
A Dsufile.c581 sustat->ss_ctime = nilfs->ns_ctime; in nilfs_sufile_get_stat()
583 spin_lock(&nilfs->ns_last_segment_lock); in nilfs_sufile_get_stat()
584 sustat->ss_prot_seq = nilfs->ns_prot_seq; in nilfs_sufile_get_stat()
585 spin_unlock(&nilfs->ns_last_segment_lock); in nilfs_sufile_get_stat()
758 nrsvsegs = nilfs_nrsvsegs(nilfs, newnsegs); in nilfs_sufile_resize()
783 nilfs_set_nsegments(nilfs, newnsegs); in nilfs_sufile_resize()
904 if (sup->sup_segnum >= nilfs->ns_nsegments in nilfs_sufile_set_suinfo()
909 nilfs->ns_blocks_per_segment)) in nilfs_sufile_set_suinfo()
1028 bdev_logical_block_size(nilfs->ns_bdev); in nilfs_sufile_trim_fs()
1031 max_blocks = ((u64)nilfs->ns_nsegments * nilfs->ns_blocks_per_segment); in nilfs_sufile_trim_fs()
[all …]
A Dsegbuf.c21 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
229 struct the_nilfs *nilfs = segbuf->sb_super->s_fs_info; in nilfs_segbuf_fill_in_super_root_crc() local
234 srsize = NILFS_SR_BYTES(nilfs->ns_inode_size); in nilfs_segbuf_fill_in_super_root_crc()
288 ret = nilfs_segbuf_write(segbuf, nilfs); in nilfs_write_logs()
390 bio_set_dev(bio, nilfs->ns_bdev); in nilfs_alloc_seg_bio()
392 start << (nilfs->ns_blocksize_bits - 9); in nilfs_alloc_seg_bio()
449 struct the_nilfs *nilfs) in nilfs_segbuf_write() argument
[all …]
A Dinode.c371 spin_lock(&nilfs->ns_next_gen_lock); in nilfs_new_inode()
373 spin_unlock(&nilfs->ns_next_gen_lock); in nilfs_new_inode()
865 spin_lock(&nilfs->ns_inode_lock); in nilfs_load_inode_block()
867 spin_unlock(&nilfs->ns_inode_lock); in nilfs_load_inode_block()
872 spin_lock(&nilfs->ns_inode_lock); in nilfs_load_inode_block()
883 spin_unlock(&nilfs->ns_inode_lock); in nilfs_load_inode_block()
894 spin_lock(&nilfs->ns_inode_lock); in nilfs_inode_dirty()
897 spin_unlock(&nilfs->ns_inode_lock); in nilfs_inode_dirty()
912 spin_lock(&nilfs->ns_inode_lock); in nilfs_set_file_dirty()
927 spin_unlock(&nilfs->ns_inode_lock); in nilfs_set_file_dirty()
[all …]
A Dgcinode.c73 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()
A Dfile.c26 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()
A Dbtnode.c77 struct the_nilfs *nilfs = inode->i_sb->s_fs_info; in nilfs_btnode_submit_block() local
80 err = nilfs_dat_translate(nilfs->ns_dat, blocknr, in nilfs_btnode_submit_block()
A Dsegment.h245 int nilfs_salvage_orphan_logs(struct the_nilfs *nilfs, struct super_block *sb,
A Dbmap.c24 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()
A Dsegbuf.h163 int nilfs_write_logs(struct list_head *logs, struct the_nilfs *nilfs);
A Dnilfs.h358 void nilfs_remove_all_gcinodes(struct the_nilfs *nilfs);
/linux/Documentation/filesystems/
A Dnilfs2.rst25 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.
/linux/
A DMAINTAINERS13460 L: linux-nilfs@vger.kernel.org
13462 W: https://nilfs.sourceforge.io/
13463 W: https://nilfs.osdn.jp/

Completed in 824 milliseconds