Searched refs:NILFS_MDT (Results 1 – 10 of 10) sorted by relevance
37 return (struct nilfs_sufile_info *)NILFS_MDT(sufile); in NILFS_SUI()43 return NILFS_MDT(sufile)->mi_entries_per_block; in nilfs_sufile_segment_usages_per_block()49 __u64 t = segnum + NILFS_MDT(sufile)->mi_first_entry_offset; in nilfs_sufile_get_blkoff()58 __u64 t = segnum + NILFS_MDT(sufile)->mi_first_entry_offset; in nilfs_sufile_get_offset()79 NILFS_MDT(sufile)->mi_entry_size; in nilfs_sufile_block_get_segment_usage()171 down_write(&NILFS_MDT(sufile)->mi_sem); in nilfs_sufile_updatev()217 up_write(&NILFS_MDT(sufile)->mi_sem); in nilfs_sufile_updatev()238 down_write(&NILFS_MDT(sufile)->mi_sem); in nilfs_sufile_update()252 up_write(&NILFS_MDT(sufile)->mi_sem); in nilfs_sufile_update()273 down_write(&NILFS_MDT(sufile)->mi_sem); in nilfs_sufile_set_alloc_range()[all …]
22 return NILFS_MDT(cpfile)->mi_entries_per_block; in nilfs_cpfile_checkpoints_per_block()29 __u64 tcno = cno + NILFS_MDT(cpfile)->mi_first_entry_offset - 1; in nilfs_cpfile_get_blkoff()39 __u64 tcno = cno + NILFS_MDT(cpfile)->mi_first_entry_offset - 1; in nilfs_cpfile_get_offset()48 + 1 - NILFS_MDT(cpfile)->mi_first_entry_offset; in nilfs_cpfile_first_checkpoint_in_block()111 NILFS_MDT(cpfile)->mi_entry_size; in nilfs_cpfile_block_get_checkpoint()119 size_t cpsz = NILFS_MDT(cpfile)->mi_entry_size; in nilfs_cpfile_block_init()230 down_write(&NILFS_MDT(cpfile)->mi_sem); in nilfs_cpfile_get_checkpoint()271 up_write(&NILFS_MDT(cpfile)->mi_sem); in nilfs_cpfile_get_checkpoint()318 size_t cpsz = NILFS_MDT(cpfile)->mi_entry_size; in nilfs_cpfile_delete_checkpoints()331 down_write(&NILFS_MDT(cpfile)->mi_sem); in nilfs_cpfile_delete_checkpoints()[all …]
49 struct nilfs_mdt_info *mi = NILFS_MDT(inode); in nilfs_palloc_init_blockgroup()104 return desc_block * NILFS_MDT(inode)->mi_blocks_per_desc_block; in nilfs_palloc_desc_blkoff()121 desc_offset * NILFS_MDT(inode)->mi_blocks_per_group; in nilfs_palloc_bitmap_blkoff()173 group_offset / NILFS_MDT(inode)->mi_entries_per_block; in nilfs_palloc_entry_blkoff()263 struct nilfs_palloc_cache *cache = NILFS_MDT(inode)->mi_palloc_cache; in nilfs_palloc_get_desc_block()282 struct nilfs_palloc_cache *cache = NILFS_MDT(inode)->mi_palloc_cache; in nilfs_palloc_get_bitmap_block()298 struct nilfs_palloc_cache *cache = NILFS_MDT(inode)->mi_palloc_cache; in nilfs_palloc_delete_bitmap_block()316 struct nilfs_palloc_cache *cache = NILFS_MDT(inode)->mi_palloc_cache; in nilfs_palloc_get_entry_block()331 struct nilfs_palloc_cache *cache = NILFS_MDT(inode)->mi_palloc_cache; in nilfs_palloc_delete_entry_block()367 entry_offset = group_offset % NILFS_MDT(inode)->mi_entries_per_block; in nilfs_palloc_block_get_entry()[all …]
471 struct nilfs_mdt_info *mdi = NILFS_MDT(inode); in nilfs_mdt_clear()483 struct nilfs_mdt_info *mdi = NILFS_MDT(inode); in nilfs_mdt_destroy()492 struct nilfs_mdt_info *mi = NILFS_MDT(inode); in nilfs_mdt_set_entry_size()507 struct nilfs_mdt_info *mi = NILFS_MDT(inode); in nilfs_mdt_setup_shadow_map()524 struct nilfs_mdt_info *mi = NILFS_MDT(inode); in nilfs_mdt_save_to_shadow_map()545 struct nilfs_shadow_map *shadow = NILFS_MDT(inode)->mi_shadow; in nilfs_mdt_freeze_buffer()577 struct nilfs_shadow_map *shadow = NILFS_MDT(inode)->mi_shadow; in nilfs_mdt_get_frozen_buffer()613 struct nilfs_mdt_info *mi = NILFS_MDT(inode); in nilfs_mdt_restore_from_shadow_map()639 struct nilfs_mdt_info *mi = NILFS_MDT(inode); in nilfs_mdt_clear_shadow_map()
56 static inline struct nilfs_mdt_info *NILFS_MDT(const struct inode *inode) in NILFS_MDT() function114 return bgl_lock_ptr(NILFS_MDT(inode)->mi_bgl, block_group); in nilfs_mdt_bgl_lock()
79 down_read(&NILFS_MDT(nilfs->ns_dat)->mi_sem); in nilfs_get_block()81 up_read(&NILFS_MDT(nilfs->ns_dat)->mi_sem); in nilfs_get_block()482 down_read(&NILFS_MDT(nilfs->ns_dat)->mi_sem); in __nilfs_read_inode()513 up_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()675 memset(raw_inode, 0, NILFS_MDT(ifile)->mi_entry_size); in nilfs_update_inode()978 struct nilfs_mdt_info *mdi = NILFS_MDT(inode); in nilfs_dirty_inode()1058 down_read(&NILFS_MDT(nilfs->ns_dat)->mi_sem); in nilfs_fiemap()1061 up_read(&NILFS_MDT(nilfs->ns_dat)->mi_sem); in nilfs_fiemap()
31 return (struct nilfs_ifile_info *)NILFS_MDT(ifile); in NILFS_IFILE_I()
37 return (struct nilfs_dat_info *)NILFS_MDT(dat); in NILFS_DAT_I()427 unsigned long entries_per_block = NILFS_MDT(dat)->mi_entries_per_block; in nilfs_dat_get_vinfo()
698 down_read(&NILFS_MDT(nilfs->ns_dat)->mi_sem); in nilfs_count_free_blocks()700 up_read(&NILFS_MDT(nilfs->ns_dat)->mi_sem); in nilfs_count_free_blocks()
389 down_read(&NILFS_MDT(nilfs->ns_dat)->mi_sem); in nilfs_segments_clean_segments_show()391 up_read(&NILFS_MDT(nilfs->ns_dat)->mi_sem); in nilfs_segments_clean_segments_show()