/fs/nilfs2/ |
D | bmap.c | 35 struct inode *nilfs_bmap_get_dat(const struct nilfs_bmap *bmap) in nilfs_bmap_get_dat() argument 37 struct the_nilfs *nilfs = bmap->b_inode->i_sb->s_fs_info; in nilfs_bmap_get_dat() 42 static int nilfs_bmap_convert_error(struct nilfs_bmap *bmap, in nilfs_bmap_convert_error() argument 45 struct inode *inode = bmap->b_inode; in nilfs_bmap_convert_error() 75 int nilfs_bmap_lookup_at_level(struct nilfs_bmap *bmap, __u64 key, int level, in nilfs_bmap_lookup_at_level() argument 81 down_read(&bmap->b_sem); in nilfs_bmap_lookup_at_level() 82 ret = bmap->b_ops->bop_lookup(bmap, key, level, ptrp); in nilfs_bmap_lookup_at_level() 84 ret = nilfs_bmap_convert_error(bmap, __func__, ret); in nilfs_bmap_lookup_at_level() 87 if (NILFS_BMAP_USE_VBN(bmap)) { in nilfs_bmap_lookup_at_level() 88 ret = nilfs_dat_translate(nilfs_bmap_get_dat(bmap), *ptrp, in nilfs_bmap_lookup_at_level() [all …]
|
D | direct.c | 118 static int nilfs_direct_insert(struct nilfs_bmap *bmap, __u64 key, __u64 ptr) in nilfs_direct_insert() argument 127 if (nilfs_direct_get_ptr(bmap, key) != NILFS_BMAP_INVALID_PTR) in nilfs_direct_insert() 130 if (NILFS_BMAP_USE_VBN(bmap)) { in nilfs_direct_insert() 131 req.bpr_ptr = nilfs_direct_find_target_v(bmap, key); in nilfs_direct_insert() 132 dat = nilfs_bmap_get_dat(bmap); in nilfs_direct_insert() 134 ret = nilfs_bmap_prepare_alloc_ptr(bmap, &req, dat); in nilfs_direct_insert() 140 nilfs_bmap_commit_alloc_ptr(bmap, &req, dat); in nilfs_direct_insert() 141 nilfs_direct_set_ptr(bmap, key, req.bpr_ptr); in nilfs_direct_insert() 143 if (!nilfs_bmap_dirty(bmap)) in nilfs_direct_insert() 144 nilfs_bmap_set_dirty(bmap); in nilfs_direct_insert() [all …]
|
D | bmap.h | 133 #define NILFS_BMAP_USE_VBN(bmap) ((bmap)->b_ptr_type > 0) argument 173 static inline int nilfs_bmap_lookup(struct nilfs_bmap *bmap, __u64 key, in nilfs_bmap_lookup() argument 176 return nilfs_bmap_lookup_at_level(bmap, key, 1, ptr); in nilfs_bmap_lookup() 184 static inline int nilfs_bmap_prepare_alloc_ptr(struct nilfs_bmap *bmap, in nilfs_bmap_prepare_alloc_ptr() argument 191 req->bpr_ptr = bmap->b_last_allocated_ptr++; in nilfs_bmap_prepare_alloc_ptr() 195 static inline void nilfs_bmap_commit_alloc_ptr(struct nilfs_bmap *bmap, in nilfs_bmap_commit_alloc_ptr() argument 203 static inline void nilfs_bmap_abort_alloc_ptr(struct nilfs_bmap *bmap, in nilfs_bmap_abort_alloc_ptr() argument 210 bmap->b_last_allocated_ptr--; in nilfs_bmap_abort_alloc_ptr() 213 static inline int nilfs_bmap_prepare_end_ptr(struct nilfs_bmap *bmap, in nilfs_bmap_prepare_end_ptr() argument 220 static inline void nilfs_bmap_commit_end_ptr(struct nilfs_bmap *bmap, in nilfs_bmap_commit_end_ptr() argument [all …]
|
D | ioctl.c | 310 struct nilfs_bmap *bmap = NILFS_I(nilfs->ns_dat)->i_bmap; in nilfs_ioctl_do_get_bdescs() local 316 ret = nilfs_bmap_lookup_at_level(bmap, in nilfs_ioctl_do_get_bdescs() 497 struct nilfs_bmap *bmap = NILFS_I(nilfs->ns_dat)->i_bmap; in nilfs_ioctl_mark_blocks_dirty() local 503 ret = nilfs_bmap_lookup_at_level(bmap, in nilfs_ioctl_mark_blocks_dirty() 523 ret = nilfs_bmap_mark(bmap, bdescs[i].bd_offset, in nilfs_ioctl_mark_blocks_dirty()
|
D | Makefile | 3 btnode.o bmap.o btree.o direct.o dat.o recovery.o \
|
D | nilfs.h | 84 NILFS_BMAP_I(const struct nilfs_bmap *bmap) in NILFS_BMAP_I() argument 86 return container_of(bmap, struct nilfs_inode_info, i_bmap_data); in NILFS_BMAP_I()
|
D | btree.c | 2297 int nilfs_btree_init(struct nilfs_bmap *bmap) in nilfs_btree_init() argument 2299 bmap->b_ops = &nilfs_btree_ops; in nilfs_btree_init() 2300 bmap->b_nchildren_per_block = in nilfs_btree_init() 2301 NILFS_BTREE_NODE_NCHILDREN_MAX(nilfs_btree_node_size(bmap)); in nilfs_btree_init() 2305 void nilfs_btree_init_gc(struct nilfs_bmap *bmap) in nilfs_btree_init_gc() argument 2307 bmap->b_ops = &nilfs_btree_ops_gc; in nilfs_btree_init_gc() 2308 bmap->b_nchildren_per_block = in nilfs_btree_init_gc() 2309 NILFS_BTREE_NODE_NCHILDREN_MAX(nilfs_btree_node_size(bmap)); in nilfs_btree_init_gc()
|
/fs/affs/ |
D | bitmap.c | 43 u32 blk, bmap, bit, mask, tmp; in affs_free_block() local 52 bmap = blk / sbi->s_bmap_bits; in affs_free_block() 54 bm = &sbi->s_bitmap[bmap]; in affs_free_block() 59 if (sbi->s_last_bmap != bmap) { in affs_free_block() 65 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 | 77 static void dbAllocBits(struct bmap * bmp, struct dmap * dp, s64 blkno, 83 static int dbAdjCtl(struct bmap * bmp, s64 blkno, int newval, int alloc, 85 static int dbAllocAny(struct bmap * bmp, s64 nblocks, int l2nb, s64 * results); 86 static int dbAllocNext(struct bmap * bmp, struct dmap * dp, s64 blkno, 88 static int dbAllocNear(struct bmap * bmp, struct dmap * dp, s64 blkno, 91 static int dbAllocDmap(struct bmap * bmp, struct dmap * dp, s64 blkno, 93 static int dbAllocDmapLev(struct bmap * bmp, struct dmap * dp, int nblocks, 96 static int dbAllocAG(struct bmap * bmp, int agno, s64 nblocks, int l2nb, 98 static int dbAllocCtl(struct bmap * bmp, s64 nblocks, int l2nb, s64 blkno, 102 static int dbFindCtl(struct bmap * bmp, int l2nb, int level, s64 * blkno); [all …]
|
D | file.c | 78 atomic_inc( &jfs_sb->bmap->db_active[ji->active_ag]); in jfs_open() 91 struct bmap *bmap = JFS_SBI(inode->i_sb)->bmap; in jfs_release() local 92 atomic_dec(&bmap->db_active[ji->active_ag]); in jfs_release()
|
D | jfs_discard.c | 83 struct bmap *bmp = JFS_SBI(ip->i_sb)->bmap; in jfs_ioc_trim()
|
D | super.c | 134 struct bmap *bmap = JFS_SBI(inode->i_sb)->bmap; in jfs_destroy_inode() local 135 atomic_dec(&bmap->db_active[ji->active_ag]); in jfs_destroy_inode() 151 buf->f_blocks = sbi->bmap->db_mapsize; in jfs_statfs() 152 buf->f_bfree = sbi->bmap->db_nfree; in jfs_statfs() 153 buf->f_bavail = sbi->bmap->db_nfree; in jfs_statfs() 164 ((sbi->bmap->db_nfree >> imap->im_l2nbperiext) in jfs_statfs()
|
D | jfs_dmap.h | 134 #define BLKTOAG(b,sbi) ((b) >> ((sbi)->bmap->db_agl2size)) 140 ((s64)(a) << (JFS_SBI((ip)->i_sb)->bmap->db_agl2size)) 243 struct bmap { struct
|
D | jfs_incore.h | 189 struct bmap *bmap; /* incore bmap descriptor */ member
|
D | resize.c | 70 struct bmap *bmp = sbi->bmap; in jfs_extendfs()
|
D | jfs_extent.c | 515 struct bmap *bmp = sbi->bmap; in extBalloc()
|
/fs/ecryptfs/ |
D | mmap.c | 549 if (lower_inode->i_mapping->a_ops->bmap) in ecryptfs_bmap() 550 rc = lower_inode->i_mapping->a_ops->bmap(lower_inode->i_mapping, in ecryptfs_bmap() 560 .bmap = ecryptfs_bmap,
|
/fs/reiserfs/ |
D | bitmap.c | 62 unsigned int bmap, offset; in is_reusable() local 72 get_bit_address(s, block, &bmap, &offset); in is_reusable() 95 if (bmap >= bmap_count) { in is_reusable() 98 block, bmap); in is_reusable() 113 static inline int is_block_in_journal(struct super_block *s, unsigned int bmap, in is_block_in_journal() argument 118 if (reiserfs_in_journal(s, bmap, off, 1, &tmp)) { in is_block_in_journal() 148 PROC_INFO_INC(s, scan_bitmap.bmap); in scan_bitmap_block()
|
/fs/gfs2/ |
D | Makefile | 3 gfs2-y := acl.o bmap.o dir.o xattr.o glock.o \
|
/fs/cachefiles/ |
D | rdwr.c | 423 ASSERT(inode->i_mapping->a_ops->bmap); in cachefiles_read_or_alloc_page() 447 block = inode->i_mapping->a_ops->bmap(inode->i_mapping, block0); in cachefiles_read_or_alloc_page() 739 ASSERT(inode->i_mapping->a_ops->bmap); in cachefiles_read_or_alloc_pages() 770 block = inode->i_mapping->a_ops->bmap(inode->i_mapping, in cachefiles_read_or_alloc_pages()
|
/fs/freevxfs/ |
D | vxfs_subr.c | 46 .bmap = vxfs_bmap,
|
/fs/ |
D | ioctl.c | 56 if (!mapping->a_ops->bmap) in ioctl_fibmap() 63 res = mapping->a_ops->bmap(mapping, block); in ioctl_fibmap()
|
D | inode.c | 1489 sector_t bmap(struct inode *inode, sector_t block) in bmap() function 1492 if (inode->i_mapping->a_ops->bmap) in bmap() 1493 res = inode->i_mapping->a_ops->bmap(inode->i_mapping, block); in bmap() 1496 EXPORT_SYMBOL(bmap);
|
/fs/bfs/ |
D | file.c | 196 .bmap = bfs_bmap,
|
/fs/hpfs/ |
D | file.c | 166 .bmap = _hpfs_bmap
|