/linux-6.6.21/fs/nilfs2/ |
D | the_nilfs.c | 29 void nilfs_set_last_segment(struct the_nilfs *nilfs, in nilfs_set_last_segment() argument 32 spin_lock(&nilfs->ns_last_segment_lock); in nilfs_set_last_segment() 33 nilfs->ns_last_pseg = start_blocknr; in nilfs_set_last_segment() 34 nilfs->ns_last_seq = seq; in nilfs_set_last_segment() 35 nilfs->ns_last_cno = cno; in nilfs_set_last_segment() 37 if (!nilfs_sb_dirty(nilfs)) { in nilfs_set_last_segment() 38 if (nilfs->ns_prev_seq == nilfs->ns_last_seq) in nilfs_set_last_segment() 41 set_nilfs_sb_dirty(nilfs); in nilfs_set_last_segment() 43 nilfs->ns_prev_seq = nilfs->ns_last_seq; in nilfs_set_last_segment() 46 spin_unlock(&nilfs->ns_last_segment_lock); in nilfs_set_last_segment() [all …]
|
D | the_nilfs.h | 195 static inline void set_nilfs_##name(struct the_nilfs *nilfs) \ 197 set_bit(THE_NILFS_##bit, &(nilfs)->ns_flags); \ 199 static inline void clear_nilfs_##name(struct the_nilfs *nilfs) \ 201 clear_bit(THE_NILFS_##bit, &(nilfs)->ns_flags); \ 203 static inline int nilfs_##name(struct the_nilfs *nilfs) \ 205 return test_bit(THE_NILFS_##bit, &(nilfs)->ns_flags); \ 217 #define nilfs_clear_opt(nilfs, opt) \ argument 218 ((nilfs)->ns_mount_opt &= ~NILFS_MOUNT_##opt) 219 #define nilfs_set_opt(nilfs, opt) \ argument 220 ((nilfs)->ns_mount_opt |= NILFS_MOUNT_##opt) [all …]
|
D | sysfs.c | 26 struct the_nilfs *nilfs = container_of(kobj->parent, \ 32 return a->show ? a->show(a, nilfs, buf) : 0; \ 38 struct the_nilfs *nilfs = container_of(kobj->parent, \ 44 return a->store ? a->store(a, nilfs, buf, len) : 0; \ 66 static int nilfs_sysfs_create_##name##_group(struct the_nilfs *nilfs) \ 73 subgroups = nilfs->ns_##parent_name##_subgroups; \ 76 parent = &nilfs->ns_##parent_name##_kobj; \ 85 static void nilfs_sysfs_delete_##name##_group(struct the_nilfs *nilfs) \ 87 kobject_put(&nilfs->ns_##parent_name##_subgroups->sg_##name##_kobj); \ 177 struct the_nilfs *nilfs; in nilfs_sysfs_create_snapshot_group() local [all …]
|
D | super.c | 90 struct the_nilfs *nilfs = sb->s_fs_info; in nilfs_set_error() local 93 down_write(&nilfs->ns_sem); in nilfs_set_error() 94 if (!(nilfs->ns_mount_state & NILFS_ERROR_FS)) { in nilfs_set_error() 95 nilfs->ns_mount_state |= NILFS_ERROR_FS; in nilfs_set_error() 104 up_write(&nilfs->ns_sem); in nilfs_set_error() 123 struct the_nilfs *nilfs = sb->s_fs_info; in __nilfs_error() local 140 if (nilfs_test_opt(nilfs, ERRORS_RO)) { in __nilfs_error() 146 if (nilfs_test_opt(nilfs, ERRORS_PANIC)) in __nilfs_error() 176 struct the_nilfs *nilfs = sb->s_fs_info; in nilfs_sync_super() local 180 set_buffer_dirty(nilfs->ns_sbh[0]); in nilfs_sync_super() [all …]
|
D | recovery.c | 92 static int nilfs_compute_checksum(struct the_nilfs *nilfs, in nilfs_compute_checksum() argument 97 unsigned int blocksize = nilfs->ns_blocksize; in nilfs_compute_checksum() 104 crc = crc32_le(nilfs->ns_crc_seed, in nilfs_compute_checksum() 110 bh = __bread(nilfs->ns_bdev, ++start, blocksize); in nilfs_compute_checksum() 130 int nilfs_read_super_root_block(struct the_nilfs *nilfs, sector_t sr_block, in nilfs_read_super_root_block() argument 139 bh_sr = __bread(nilfs->ns_bdev, sr_block, nilfs->ns_blocksize); in nilfs_read_super_root_block() 149 if (bytes == 0 || bytes > nilfs->ns_blocksize) { in nilfs_read_super_root_block() 154 nilfs, bh_sr, &crc, sizeof(sr->sr_sum), bytes, in nilfs_read_super_root_block() 171 return nilfs_warn_segment_error(nilfs->ns_sb, ret); in nilfs_read_super_root_block() 181 nilfs_read_log_header(struct the_nilfs *nilfs, sector_t start_blocknr, in nilfs_read_log_header() argument [all …]
|
D | ioctl.c | 47 static int nilfs_ioctl_wrap_copy(struct the_nilfs *nilfs, in nilfs_ioctl_wrap_copy() argument 92 nr = dofunc(nilfs, &pos, argv->v_flags, buf, argv->v_size, in nilfs_ioctl_wrap_copy() 190 struct the_nilfs *nilfs = inode->i_sb->s_fs_info; in nilfs_ioctl_change_cpmode() local 206 mutex_lock(&nilfs->ns_snapshot_mount_mutex); in nilfs_ioctl_change_cpmode() 210 nilfs->ns_cpfile, cpmode.cm_cno, cpmode.cm_mode); in nilfs_ioctl_change_cpmode() 216 mutex_unlock(&nilfs->ns_snapshot_mount_mutex); in nilfs_ioctl_change_cpmode() 245 struct the_nilfs *nilfs = inode->i_sb->s_fs_info; in nilfs_ioctl_delete_checkpoint() local 262 ret = nilfs_cpfile_delete_checkpoint(nilfs->ns_cpfile, cno); in nilfs_ioctl_delete_checkpoint() 288 nilfs_ioctl_do_get_cpinfo(struct the_nilfs *nilfs, __u64 *posp, int flags, in nilfs_ioctl_do_get_cpinfo() argument 293 down_read(&nilfs->ns_segctor_sem); in nilfs_ioctl_do_get_cpinfo() [all …]
|
D | segment.c | 205 struct the_nilfs *nilfs; in nilfs_transaction_begin() local 222 nilfs = sb->s_fs_info; in nilfs_transaction_begin() 223 down_read(&nilfs->ns_segctor_sem); in nilfs_transaction_begin() 224 if (vacancy_check && nilfs_near_disk_full(nilfs)) { in nilfs_transaction_begin() 225 up_read(&nilfs->ns_segctor_sem); in nilfs_transaction_begin() 259 struct the_nilfs *nilfs = sb->s_fs_info; in nilfs_transaction_commit() local 270 if (nilfs->ns_writer) { in nilfs_transaction_commit() 271 struct nilfs_sc_info *sci = nilfs->ns_writer; in nilfs_transaction_commit() 275 if (atomic_read(&nilfs->ns_ndirtyblks) > sci->sc_watermark) in nilfs_transaction_commit() 278 up_read(&nilfs->ns_segctor_sem); in nilfs_transaction_commit() [all …]
|
D | sufile.c | 510 struct the_nilfs *nilfs = sufile->i_sb->s_fs_info; in nilfs_sufile_mark_dirty() local 514 if (nilfs_segment_is_active(nilfs, segnum)) { in nilfs_sufile_mark_dirty() 602 struct the_nilfs *nilfs = sufile->i_sb->s_fs_info; in nilfs_sufile_get_stat() local 617 sustat->ss_ctime = nilfs->ns_ctime; in nilfs_sufile_get_stat() 618 sustat->ss_nongc_ctime = nilfs->ns_nongc_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() 676 struct the_nilfs *nilfs = sufile->i_sb->s_fs_info; in nilfs_sufile_truncate_range() local 722 nilfs_segment_is_active(nilfs, segnum + j)) { in nilfs_sufile_truncate_range() [all …]
|
D | inode.c | 79 struct the_nilfs *nilfs = inode->i_sb->s_fs_info; in nilfs_get_block() local 84 down_read(&NILFS_MDT(nilfs->ns_dat)->mi_sem); in nilfs_get_block() 86 up_read(&NILFS_MDT(nilfs->ns_dat)->mi_sem); in nilfs_get_block() 327 struct the_nilfs *nilfs = sb->s_fs_info; in nilfs_new_inode() local 387 spin_lock(&nilfs->ns_next_gen_lock); in nilfs_new_inode() 388 inode->i_generation = nilfs->ns_next_generation++; in nilfs_new_inode() 389 spin_unlock(&nilfs->ns_next_gen_lock); in nilfs_new_inode() 488 struct the_nilfs *nilfs = sb->s_fs_info; in __nilfs_read_inode() local 493 down_read(&NILFS_MDT(nilfs->ns_dat)->mi_sem); in __nilfs_read_inode() 524 up_read(&NILFS_MDT(nilfs->ns_dat)->mi_sem); in __nilfs_read_inode() [all …]
|
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 64 nilfs_get_segment_range(nilfs, segnum, &segbuf->sb_fseg_start, in nilfs_segbuf_map() 89 __u64 nextnum, struct the_nilfs *nilfs) in nilfs_segbuf_set_next_segnum() argument 92 segbuf->sb_sum.next = nilfs_get_segment_start_blocknr(nilfs, nextnum); in nilfs_segbuf_set_next_segnum() 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() 288 int nilfs_write_logs(struct list_head *logs, struct the_nilfs *nilfs) in nilfs_write_logs() argument 294 ret = nilfs_segbuf_write(segbuf, nilfs); in nilfs_write_logs() [all …]
|
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()
|
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()
|
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()
|
D | segment.h | 245 int nilfs_salvage_orphan_logs(struct the_nilfs *nilfs, struct super_block *sb,
|
D | segbuf.h | 163 int nilfs_write_logs(struct list_head *logs, struct the_nilfs *nilfs);
|
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()
|
D | nilfs.h | 359 void nilfs_remove_all_gcinodes(struct the_nilfs *nilfs);
|
/linux-6.6.21/Documentation/filesystems/ |
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.
|
/linux-6.6.21/ |
D | MAINTAINERS | 15052 L: linux-nilfs@vger.kernel.org 15054 W: https://nilfs.sourceforge.io/ 15055 W: https://nilfs.osdn.jp/
|