/linux-4.4.14/fs/nilfs2/ |
D | the_nilfs.c | 41 void nilfs_set_last_segment(struct the_nilfs *nilfs, in nilfs_set_last_segment() argument 44 spin_lock(&nilfs->ns_last_segment_lock); in nilfs_set_last_segment() 45 nilfs->ns_last_pseg = start_blocknr; in nilfs_set_last_segment() 46 nilfs->ns_last_seq = seq; in nilfs_set_last_segment() 47 nilfs->ns_last_cno = cno; in nilfs_set_last_segment() 49 if (!nilfs_sb_dirty(nilfs)) { in nilfs_set_last_segment() 50 if (nilfs->ns_prev_seq == nilfs->ns_last_seq) in nilfs_set_last_segment() 53 set_nilfs_sb_dirty(nilfs); in nilfs_set_last_segment() 55 nilfs->ns_prev_seq = nilfs->ns_last_seq; in nilfs_set_last_segment() 58 spin_unlock(&nilfs->ns_last_segment_lock); in nilfs_set_last_segment() [all …]
|
D | the_nilfs.h | 207 static inline void set_nilfs_##name(struct the_nilfs *nilfs) \ 209 set_bit(THE_NILFS_##bit, &(nilfs)->ns_flags); \ 211 static inline void clear_nilfs_##name(struct the_nilfs *nilfs) \ 213 clear_bit(THE_NILFS_##bit, &(nilfs)->ns_flags); \ 215 static inline int nilfs_##name(struct the_nilfs *nilfs) \ 217 return test_bit(THE_NILFS_##bit, &(nilfs)->ns_flags); \ 228 #define nilfs_clear_opt(nilfs, opt) \ argument 229 do { (nilfs)->ns_mount_opt &= ~NILFS_MOUNT_##opt; } while (0) 230 #define nilfs_set_opt(nilfs, opt) \ argument 231 do { (nilfs)->ns_mount_opt |= NILFS_MOUNT_##opt; } while (0) [all …]
|
D | sysfs.c | 48 struct the_nilfs *nilfs = container_of(kobj->parent, \ 54 return a->show ? a->show(a, nilfs, buf) : 0; \ 60 struct the_nilfs *nilfs = container_of(kobj->parent, \ 66 return a->store ? a->store(a, nilfs, buf, len) : 0; \ 77 struct the_nilfs *nilfs = container_of(kobj->parent, \ 80 subgroups = nilfs->ns_##parent_name##_subgroups; \ 90 static int nilfs_sysfs_create_##name##_group(struct the_nilfs *nilfs) \ 97 subgroups = nilfs->ns_##parent_name##_subgroups; \ 100 parent = &nilfs->ns_##parent_name##_kobj; \ 109 static void nilfs_sysfs_delete_##name##_group(struct the_nilfs *nilfs) \ [all …]
|
D | super.c | 80 struct the_nilfs *nilfs = sb->s_fs_info; in nilfs_set_error() local 83 down_write(&nilfs->ns_sem); in nilfs_set_error() 84 if (!(nilfs->ns_mount_state & NILFS_ERROR_FS)) { in nilfs_set_error() 85 nilfs->ns_mount_state |= NILFS_ERROR_FS; in nilfs_set_error() 94 up_write(&nilfs->ns_sem); in nilfs_set_error() 112 struct the_nilfs *nilfs = sb->s_fs_info; in nilfs_error() local 129 if (nilfs_test_opt(nilfs, ERRORS_RO)) { in nilfs_error() 135 if (nilfs_test_opt(nilfs, ERRORS_PANIC)) in nilfs_error() 192 struct the_nilfs *nilfs = sb->s_fs_info; in nilfs_sync_super() local 196 set_buffer_dirty(nilfs->ns_sbh[0]); in nilfs_sync_super() [all …]
|
D | recovery.c | 104 static int nilfs_compute_checksum(struct the_nilfs *nilfs, in nilfs_compute_checksum() argument 109 unsigned int blocksize = nilfs->ns_blocksize; in nilfs_compute_checksum() 116 crc = crc32_le(nilfs->ns_crc_seed, in nilfs_compute_checksum() 122 bh = __bread(nilfs->ns_bdev, ++start, blocksize); in nilfs_compute_checksum() 142 int nilfs_read_super_root_block(struct the_nilfs *nilfs, sector_t sr_block, in nilfs_read_super_root_block() argument 151 bh_sr = __bread(nilfs->ns_bdev, sr_block, nilfs->ns_blocksize); in nilfs_read_super_root_block() 161 if (bytes == 0 || bytes > nilfs->ns_blocksize) { in nilfs_read_super_root_block() 166 nilfs, bh_sr, &crc, sizeof(sr->sr_sum), bytes, in nilfs_read_super_root_block() 193 nilfs_read_log_header(struct the_nilfs *nilfs, sector_t start_blocknr, in nilfs_read_log_header() argument 198 bh_sum = __bread(nilfs->ns_bdev, start_blocknr, nilfs->ns_blocksize); in nilfs_read_log_header() [all …]
|
D | ioctl.c | 60 static int nilfs_ioctl_wrap_copy(struct the_nilfs *nilfs, in nilfs_ioctl_wrap_copy() argument 105 nr = dofunc(nilfs, &pos, argv->v_flags, buf, argv->v_size, in nilfs_ioctl_wrap_copy() 224 struct the_nilfs *nilfs = inode->i_sb->s_fs_info; in nilfs_ioctl_change_cpmode() local 240 mutex_lock(&nilfs->ns_snapshot_mount_mutex); in nilfs_ioctl_change_cpmode() 244 nilfs->ns_cpfile, cpmode.cm_cno, cpmode.cm_mode); in nilfs_ioctl_change_cpmode() 250 mutex_unlock(&nilfs->ns_snapshot_mount_mutex); in nilfs_ioctl_change_cpmode() 279 struct the_nilfs *nilfs = inode->i_sb->s_fs_info; in nilfs_ioctl_delete_checkpoint() local 296 ret = nilfs_cpfile_delete_checkpoint(nilfs->ns_cpfile, cno); in nilfs_ioctl_delete_checkpoint() 322 nilfs_ioctl_do_get_cpinfo(struct the_nilfs *nilfs, __u64 *posp, int flags, in nilfs_ioctl_do_get_cpinfo() argument 327 down_read(&nilfs->ns_segctor_sem); in nilfs_ioctl_do_get_cpinfo() [all …]
|
D | segment.c | 215 struct the_nilfs *nilfs; in nilfs_transaction_begin() local 232 nilfs = sb->s_fs_info; in nilfs_transaction_begin() 233 down_read(&nilfs->ns_segctor_sem); in nilfs_transaction_begin() 234 if (vacancy_check && nilfs_near_disk_full(nilfs)) { in nilfs_transaction_begin() 235 up_read(&nilfs->ns_segctor_sem); in nilfs_transaction_begin() 269 struct the_nilfs *nilfs = sb->s_fs_info; in nilfs_transaction_commit() local 280 if (nilfs->ns_writer) { in nilfs_transaction_commit() 281 struct nilfs_sc_info *sci = nilfs->ns_writer; in nilfs_transaction_commit() 285 if (atomic_read(&nilfs->ns_ndirtyblks) > sci->sc_watermark) in nilfs_transaction_commit() 288 up_read(&nilfs->ns_segctor_sem); in nilfs_transaction_commit() [all …]
|
D | segbuf.c | 34 struct the_nilfs *nilfs; member 44 struct the_nilfs *nilfs); 74 unsigned long offset, struct the_nilfs *nilfs) in nilfs_segbuf_map() argument 77 nilfs_get_segment_range(nilfs, segnum, &segbuf->sb_fseg_start, in nilfs_segbuf_map() 102 __u64 nextnum, struct the_nilfs *nilfs) in nilfs_segbuf_set_next_segnum() argument 105 segbuf->sb_sum.next = nilfs_get_segment_start_blocknr(nilfs, nextnum); in nilfs_segbuf_set_next_segnum() 242 struct the_nilfs *nilfs = segbuf->sb_super->s_fs_info; in nilfs_segbuf_fill_in_super_root_crc() local 247 srsize = NILFS_SR_BYTES(nilfs->ns_inode_size); in nilfs_segbuf_fill_in_super_root_crc() 295 int nilfs_write_logs(struct list_head *logs, struct the_nilfs *nilfs) in nilfs_write_logs() argument 301 ret = nilfs_segbuf_write(segbuf, nilfs); in nilfs_write_logs() [all …]
|
D | sufile.c | 578 struct the_nilfs *nilfs = sufile->i_sb->s_fs_info; in nilfs_sufile_get_stat() local 593 sustat->ss_ctime = nilfs->ns_ctime; in nilfs_sufile_get_stat() 594 sustat->ss_nongc_ctime = nilfs->ns_nongc_ctime; in nilfs_sufile_get_stat() 595 spin_lock(&nilfs->ns_last_segment_lock); in nilfs_sufile_get_stat() 596 sustat->ss_prot_seq = nilfs->ns_prot_seq; in nilfs_sufile_get_stat() 597 spin_unlock(&nilfs->ns_last_segment_lock); in nilfs_sufile_get_stat() 652 struct the_nilfs *nilfs = sufile->i_sb->s_fs_info; in nilfs_sufile_truncate_range() local 698 nilfs_segment_is_active(nilfs, segnum + j)) { in nilfs_sufile_truncate_range() 755 struct the_nilfs *nilfs = sufile->i_sb->s_fs_info; in nilfs_sufile_resize() local 770 nrsvsegs = nilfs_nrsvsegs(nilfs, newnsegs); in nilfs_sufile_resize() [all …]
|
D | inode.c | 87 struct the_nilfs *nilfs = inode->i_sb->s_fs_info; in nilfs_get_block() local 92 down_read(&NILFS_MDT(nilfs->ns_dat)->mi_sem); in nilfs_get_block() 94 up_read(&NILFS_MDT(nilfs->ns_dat)->mi_sem); in nilfs_get_block() 347 struct the_nilfs *nilfs = sb->s_fs_info; in nilfs_new_inode() local 392 spin_lock(&nilfs->ns_next_gen_lock); in nilfs_new_inode() 393 inode->i_generation = nilfs->ns_next_generation++; in nilfs_new_inode() 394 spin_unlock(&nilfs->ns_next_gen_lock); in nilfs_new_inode() 487 struct the_nilfs *nilfs = sb->s_fs_info; in __nilfs_read_inode() local 492 down_read(&NILFS_MDT(nilfs->ns_dat)->mi_sem); in __nilfs_read_inode() 522 up_read(&NILFS_MDT(nilfs->ns_dat)->mi_sem); in __nilfs_read_inode() [all …]
|
D | gcinode.c | 87 struct the_nilfs *nilfs = inode->i_sb->s_fs_info; in nilfs_gccache_submit_read_data() local 89 err = nilfs_dat_translate(nilfs->ns_dat, vbn, &pbn); in nilfs_gccache_submit_read_data() 185 void nilfs_remove_all_gcinodes(struct the_nilfs *nilfs) in nilfs_remove_all_gcinodes() argument 187 struct list_head *head = &nilfs->ns_gc_inodes; in nilfs_remove_all_gcinodes()
|
D | file.c | 40 struct the_nilfs *nilfs; in nilfs_sync_file() local 52 nilfs = inode->i_sb->s_fs_info; in nilfs_sync_file() 54 err = nilfs_flush_device(nilfs); in nilfs_sync_file()
|
D | btnode.c | 91 struct the_nilfs *nilfs = inode->i_sb->s_fs_info; in nilfs_btnode_submit_block() local 94 err = nilfs_dat_translate(nilfs->ns_dat, blocknr, in nilfs_btnode_submit_block()
|
D | segment.h | 248 int nilfs_salvage_orphan_logs(struct the_nilfs *nilfs, struct super_block *sb,
|
D | segbuf.h | 175 int nilfs_write_logs(struct list_head *logs, struct the_nilfs *nilfs);
|
D | bmap.c | 37 struct the_nilfs *nilfs = bmap->b_inode->i_sb->s_fs_info; in nilfs_bmap_get_dat() local 39 return nilfs->ns_dat; in nilfs_bmap_get_dat()
|
D | nilfs.h | 327 void nilfs_remove_all_gcinodes(struct the_nilfs *nilfs);
|
/linux-4.4.14/Documentation/filesystems/ |
D | nilfs2.txt | 22 The userland tools are included in nilfs-utils package, which is 28 Project web page: http://nilfs.sourceforge.net/ 29 Download page: http://nilfs.sourceforge.net/en/download.html 30 List info: http://vger.kernel.org/vger-lists.html#linux-nilfs 52 if nilfs gets an error on a barrier write, it will 158 Their manpages are included in the nilfs-utils package above.
|
/linux-4.4.14/ |
D | MAINTAINERS | 7525 L: linux-nilfs@vger.kernel.org 7526 W: http://nilfs.sourceforge.net/
|