/fs/nilfs2/ |
D | bmap.c | 22 struct inode *nilfs_bmap_get_dat(const struct nilfs_bmap *bmap) in nilfs_bmap_get_dat() argument 24 struct the_nilfs *nilfs = bmap->b_inode->i_sb->s_fs_info; in nilfs_bmap_get_dat() 29 static int nilfs_bmap_convert_error(struct nilfs_bmap *bmap, in nilfs_bmap_convert_error() argument 32 struct inode *inode = bmap->b_inode; in nilfs_bmap_convert_error() 62 int nilfs_bmap_lookup_at_level(struct nilfs_bmap *bmap, __u64 key, int level, in nilfs_bmap_lookup_at_level() argument 68 down_read(&bmap->b_sem); in nilfs_bmap_lookup_at_level() 69 ret = bmap->b_ops->bop_lookup(bmap, key, level, ptrp); in nilfs_bmap_lookup_at_level() 73 if (NILFS_BMAP_USE_VBN(bmap)) { in nilfs_bmap_lookup_at_level() 74 ret = nilfs_dat_translate(nilfs_bmap_get_dat(bmap), *ptrp, in nilfs_bmap_lookup_at_level() 90 up_read(&bmap->b_sem); in nilfs_bmap_lookup_at_level() [all …]
|
D | direct.c | 106 static int nilfs_direct_insert(struct nilfs_bmap *bmap, __u64 key, __u64 ptr) in nilfs_direct_insert() argument 115 if (nilfs_direct_get_ptr(bmap, key) != NILFS_BMAP_INVALID_PTR) in nilfs_direct_insert() 118 if (NILFS_BMAP_USE_VBN(bmap)) { in nilfs_direct_insert() 119 req.bpr_ptr = nilfs_direct_find_target_v(bmap, key); in nilfs_direct_insert() 120 dat = nilfs_bmap_get_dat(bmap); in nilfs_direct_insert() 122 ret = nilfs_bmap_prepare_alloc_ptr(bmap, &req, dat); in nilfs_direct_insert() 128 nilfs_bmap_commit_alloc_ptr(bmap, &req, dat); in nilfs_direct_insert() 129 nilfs_direct_set_ptr(bmap, key, req.bpr_ptr); in nilfs_direct_insert() 131 if (!nilfs_bmap_dirty(bmap)) in nilfs_direct_insert() 132 nilfs_bmap_set_dirty(bmap); in nilfs_direct_insert() [all …]
|
D | bmap.h | 126 #define NILFS_BMAP_USE_VBN(bmap) ((bmap)->b_ptr_type > 0) argument 149 int nilfs_bmap_insert(struct nilfs_bmap *bmap, __u64 key, unsigned long rec); 150 int nilfs_bmap_delete(struct nilfs_bmap *bmap, __u64 key); 151 int nilfs_bmap_seek_key(struct nilfs_bmap *bmap, __u64 start, __u64 *keyp); 152 int nilfs_bmap_last_key(struct nilfs_bmap *bmap, __u64 *keyp); 153 int nilfs_bmap_truncate(struct nilfs_bmap *bmap, __u64 key); 167 static inline int nilfs_bmap_lookup(struct nilfs_bmap *bmap, __u64 key, in nilfs_bmap_lookup() argument 170 return nilfs_bmap_lookup_at_level(bmap, key, 1, ptr); in nilfs_bmap_lookup() 178 static inline int nilfs_bmap_prepare_alloc_ptr(struct nilfs_bmap *bmap, in nilfs_bmap_prepare_alloc_ptr() argument 185 req->bpr_ptr = bmap->b_last_allocated_ptr++; in nilfs_bmap_prepare_alloc_ptr() [all …]
|
D | btree.c | 21 static void __nilfs_btree_init(struct nilfs_bmap *bmap); 2400 static void __nilfs_btree_init(struct nilfs_bmap *bmap) in __nilfs_btree_init() argument 2402 bmap->b_ops = &nilfs_btree_ops; in __nilfs_btree_init() 2403 bmap->b_nchildren_per_block = in __nilfs_btree_init() 2404 NILFS_BTREE_NODE_NCHILDREN_MAX(nilfs_btree_node_size(bmap)); in __nilfs_btree_init() 2407 int nilfs_btree_init(struct nilfs_bmap *bmap) in nilfs_btree_init() argument 2411 __nilfs_btree_init(bmap); in nilfs_btree_init() 2413 if (nilfs_btree_root_broken(nilfs_btree_get_root(bmap), bmap->b_inode)) in nilfs_btree_init() 2417 &NILFS_BMAP_I(bmap)->vfs_inode); in nilfs_btree_init() 2422 void nilfs_btree_init_gc(struct nilfs_bmap *bmap) in nilfs_btree_init_gc() argument [all …]
|
D | ioctl.c | 452 struct nilfs_bmap *bmap = NILFS_I(nilfs->ns_dat)->i_bmap; in nilfs_ioctl_do_get_bdescs() local 458 ret = nilfs_bmap_lookup_at_level(bmap, in nilfs_ioctl_do_get_bdescs() 748 struct nilfs_bmap *bmap = NILFS_I(nilfs->ns_dat)->i_bmap; in nilfs_ioctl_mark_blocks_dirty() local 755 ret = nilfs_bmap_lookup_at_level(bmap, in nilfs_ioctl_mark_blocks_dirty() 779 ret = nilfs_bmap_mark(bmap, bdescs[i].bd_offset, in nilfs_ioctl_mark_blocks_dirty()
|
D | Makefile | 4 btnode.o bmap.o btree.o direct.o dat.o recovery.o \
|
D | nilfs.h | 73 NILFS_BMAP_I(const struct nilfs_bmap *bmap) in NILFS_BMAP_I() argument 75 return container_of(bmap, struct nilfs_inode_info, i_bmap_data); in NILFS_BMAP_I()
|
/fs/xfs/ |
D | xfs_bmap_item.c | 293 struct xfs_map_extent *bmap, in xfs_trans_set_bmap_flags() argument 298 bmap->me_flags = 0; in xfs_trans_set_bmap_flags() 302 bmap->me_flags = type; in xfs_trans_set_bmap_flags() 308 bmap->me_flags |= XFS_BMAP_EXTENT_UNWRITTEN; in xfs_trans_set_bmap_flags() 310 bmap->me_flags |= XFS_BMAP_EXTENT_ATTR_FORK; in xfs_trans_set_bmap_flags() 318 struct xfs_bmap_intent *bmap) in xfs_bmap_update_log_item() argument 334 map->me_owner = bmap->bi_owner->i_ino; in xfs_bmap_update_log_item() 335 map->me_startblock = bmap->bi_bmap.br_startblock; in xfs_bmap_update_log_item() 336 map->me_startoff = bmap->bi_bmap.br_startoff; in xfs_bmap_update_log_item() 337 map->me_len = bmap->bi_bmap.br_blockcount; in xfs_bmap_update_log_item() [all …]
|
/fs/affs/ |
D | bitmap.c | 44 u32 blk, bmap, bit, mask, tmp; in affs_free_block() local 53 bmap = blk / sbi->s_bmap_bits; in affs_free_block() 55 bm = &sbi->s_bitmap[bmap]; in affs_free_block() 60 if (sbi->s_last_bmap != bmap) { in affs_free_block() 66 sbi->s_last_bmap = bmap; in affs_free_block() 122 u32 blk, bmap, bit, mask, mask2, tmp; in affs_alloc_block() local 145 bmap = blk / sbi->s_bmap_bits; in affs_alloc_block() 146 bm = &sbi->s_bitmap[bmap]; in affs_alloc_block() 159 bmap++; in affs_alloc_block() 161 if (bmap < sbi->s_bmap_count) in affs_alloc_block() [all …]
|
/fs/jfs/ |
D | jfs_dmap.c | 64 static void dbAllocBits(struct bmap * bmp, struct dmap * dp, s64 blkno, 70 static int dbAdjCtl(struct bmap * bmp, s64 blkno, int newval, int alloc, 72 static int dbAllocAny(struct bmap * bmp, s64 nblocks, int l2nb, s64 * results); 73 static int dbAllocNext(struct bmap * bmp, struct dmap * dp, s64 blkno, 75 static int dbAllocNear(struct bmap * bmp, struct dmap * dp, s64 blkno, 78 static int dbAllocDmap(struct bmap * bmp, struct dmap * dp, s64 blkno, 80 static int dbAllocDmapLev(struct bmap * bmp, struct dmap * dp, int nblocks, 83 static int dbAllocAG(struct bmap * bmp, int agno, s64 nblocks, int l2nb, 85 static int dbAllocCtl(struct bmap * bmp, s64 nblocks, int l2nb, s64 blkno, 89 static int dbFindCtl(struct bmap * bmp, int l2nb, int level, s64 * blkno); [all …]
|
D | file.c | 66 atomic_inc(&jfs_sb->bmap->db_active[ji->active_ag]); in jfs_open() 79 struct bmap *bmap = JFS_SBI(inode->i_sb)->bmap; in jfs_release() local 80 atomic_dec(&bmap->db_active[ji->active_ag]); in jfs_release()
|
D | inode.c | 173 struct bmap *bmap = JFS_SBI(inode->i_sb)->bmap; in jfs_evict_inode() local 174 atomic_dec(&bmap->db_active[ji->active_ag]); in jfs_evict_inode() 362 .bmap = jfs_bmap,
|
D | jfs_discard.c | 68 struct bmap *bmp = JFS_SBI(ip->i_sb)->bmap; in jfs_ioc_trim()
|
D | jfs_dmap.h | 121 #define BLKTOAG(b,sbi) ((b) >> ((sbi)->bmap->db_agl2size)) 127 ((s64)(a) << (JFS_SBI((ip)->i_sb)->bmap->db_agl2size)) 230 struct bmap { struct
|
D | jfs_incore.h | 190 struct bmap *bmap; /* incore bmap descriptor */ member
|
D | jfs_extent.c | 305 struct bmap *bmp = sbi->bmap; in extBalloc()
|
D | resize.c | 58 struct bmap *bmp = sbi->bmap; in jfs_extendfs()
|
D | super.c | 128 buf->f_blocks = sbi->bmap->db_mapsize; in jfs_statfs() 129 buf->f_bfree = sbi->bmap->db_nfree; in jfs_statfs() 130 buf->f_bavail = sbi->bmap->db_nfree; in jfs_statfs() 141 ((sbi->bmap->db_nfree >> imap->im_l2nbperiext) in jfs_statfs()
|
/fs/xfs/libxfs/ |
D | xfs_rmap.c | 2511 struct xfs_bmbt_irec *bmap) in __xfs_rmap_add() argument 2516 XFS_FSB_TO_AGNO(tp->t_mountp, bmap->br_startblock), in __xfs_rmap_add() 2518 XFS_FSB_TO_AGBNO(tp->t_mountp, bmap->br_startblock), in __xfs_rmap_add() 2520 bmap->br_startoff, in __xfs_rmap_add() 2521 bmap->br_blockcount, in __xfs_rmap_add() 2522 bmap->br_state); in __xfs_rmap_add() 2529 ri->ri_bmap = *bmap; in __xfs_rmap_add() 2606 struct xfs_bmbt_irec bmap; in xfs_rmap_alloc_extent() local 2611 bmap.br_startblock = XFS_AGB_TO_FSB(tp->t_mountp, agno, bno); in xfs_rmap_alloc_extent() 2612 bmap.br_blockcount = len; in xfs_rmap_alloc_extent() [all …]
|
/fs/reiserfs/ |
D | bitmap.c | 64 unsigned int bmap, offset; in is_reusable() local 74 get_bit_address(s, block, &bmap, &offset); in is_reusable() 99 if (bmap >= bmap_count) { in is_reusable() 102 block, bmap); in is_reusable() 120 static inline int is_block_in_journal(struct super_block *s, unsigned int bmap, in is_block_in_journal() argument 125 if (reiserfs_in_journal(s, bmap, off, 1, &tmp)) { in is_block_in_journal() 156 PROC_INFO_INC(s, scan_bitmap.bmap); in scan_bitmap_block()
|
/fs/gfs2/ |
D | Makefile | 4 gfs2-y := acl.o bmap.o dir.o xattr.o glock.o \
|
/fs/freevxfs/ |
D | vxfs_subr.c | 22 .bmap = vxfs_bmap,
|
/fs/fat/ |
D | cache.c | 312 unsigned long *mapped_blocks, sector_t *bmap) in fat_get_mapped_cluster() argument 324 *bmap = fat_clus_to_blknr(sbi, cluster) + offset; in fat_get_mapped_cluster()
|
/fs/ecryptfs/ |
D | mmap.c | 530 int ret = bmap(lower_inode, &block); in ecryptfs_bmap() 556 .bmap = ecryptfs_bmap,
|
/fs/bfs/ |
D | file.c | 196 .bmap = bfs_bmap,
|