Home
last modified time | relevance | path

Searched refs:bmap (Results 1 – 25 of 72) sorted by relevance

123

/linux-4.19.296/fs/nilfs2/
Dbmap.c22 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 …]
Ddirect.c106 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 …]
Dbmap.h126 #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 …]
DMakefile4 btnode.o bmap.o btree.o direct.o dat.o recovery.o \
Dnilfs.h73 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()
Dbtree.c21 static void __nilfs_btree_init(struct nilfs_bmap *bmap);
2403 static void __nilfs_btree_init(struct nilfs_bmap *bmap) in __nilfs_btree_init() argument
2405 bmap->b_ops = &nilfs_btree_ops; in __nilfs_btree_init()
2406 bmap->b_nchildren_per_block = in __nilfs_btree_init()
2407 NILFS_BTREE_NODE_NCHILDREN_MAX(nilfs_btree_node_size(bmap)); in __nilfs_btree_init()
2410 int nilfs_btree_init(struct nilfs_bmap *bmap) in nilfs_btree_init() argument
2414 __nilfs_btree_init(bmap); in nilfs_btree_init()
2416 if (nilfs_btree_root_broken(nilfs_btree_get_root(bmap), bmap->b_inode)) in nilfs_btree_init()
2420 &NILFS_BMAP_I(bmap)->vfs_inode); in nilfs_btree_init()
2425 void nilfs_btree_init_gc(struct nilfs_bmap *bmap) in nilfs_btree_init_gc() argument
[all …]
/linux-4.19.296/fs/xfs/
Dxfs_trans_bmap.c111 struct xfs_map_extent *bmap, in xfs_trans_set_bmap_flags() argument
116 bmap->me_flags = 0; in xfs_trans_set_bmap_flags()
120 bmap->me_flags = type; in xfs_trans_set_bmap_flags()
126 bmap->me_flags |= XFS_BMAP_EXTENT_UNWRITTEN; in xfs_trans_set_bmap_flags()
128 bmap->me_flags |= XFS_BMAP_EXTENT_ATTR_FORK; in xfs_trans_set_bmap_flags()
139 struct xfs_bmap_intent *bmap; in xfs_bmap_update_log_item() local
143 bmap = container_of(item, struct xfs_bmap_intent, bi_list); in xfs_bmap_update_log_item()
156 map->me_owner = bmap->bi_owner->i_ino; in xfs_bmap_update_log_item()
157 map->me_startblock = bmap->bi_bmap.br_startblock; in xfs_bmap_update_log_item()
158 map->me_startoff = bmap->bi_bmap.br_startoff; in xfs_bmap_update_log_item()
[all …]
Dxfs_bmap_item.c383 struct xfs_map_extent *bmap; in xfs_bui_recover() local
410 bmap = &buip->bui_format.bui_extents[0]; in xfs_bui_recover()
412 XFS_FSB_TO_DADDR(mp, bmap->me_startblock)); in xfs_bui_recover()
414 XFS_INO_TO_FSB(mp, bmap->me_owner))); in xfs_bui_recover()
415 switch (bmap->me_flags & XFS_BMAP_EXTENT_TYPE_MASK) { in xfs_bui_recover()
425 bmap->me_len == 0 || in xfs_bui_recover()
428 bmap->me_len >= mp->m_sb.sb_agblocks || in xfs_bui_recover()
430 (bmap->me_flags & ~XFS_BMAP_EXTENT_FLAGS)) { in xfs_bui_recover()
453 error = xfs_iget(mp, tp, bmap->me_owner, 0, XFS_ILOCK_EXCL, &ip); in xfs_bui_recover()
461 state = (bmap->me_flags & XFS_BMAP_EXTENT_UNWRITTEN) ? in xfs_bui_recover()
[all …]
/linux-4.19.296/lib/
Dtest_bitmap.c36 const unsigned long *exp_bmap, const unsigned long *bmap, in __check_eq_bitmap() argument
39 if (!bitmap_equal(exp_bmap, bmap, nbits)) { in __check_eq_bitmap()
42 nbits, exp_bmap, nbits, bmap); in __check_eq_bitmap()
110 DECLARE_BITMAP(bmap, 1024); in test_zero_clear()
113 memset(bmap, 0xff, 128); in test_zero_clear()
115 expect_eq_pbl("0-22", bmap, 23); in test_zero_clear()
116 expect_eq_pbl("0-1023", bmap, 1024); in test_zero_clear()
119 bitmap_clear(bmap, 0, 9); in test_zero_clear()
120 expect_eq_pbl("9-1023", bmap, 1024); in test_zero_clear()
122 bitmap_zero(bmap, 35); in test_zero_clear()
[all …]
/linux-4.19.296/include/uapi/linux/netfilter/
Dxt_TCPOPTSTRIP.h7 #define tcpoptstrip_set_bit(bmap, idx) \ argument
8 (bmap[(idx) >> 5] |= 1U << (idx & 31))
9 #define tcpoptstrip_test_bit(bmap, idx) \ argument
10 (((1U << (idx & 31)) & bmap[(idx) >> 5]) != 0)
/linux-4.19.296/fs/affs/
Dbitmap.c44 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 …]
/linux-4.19.296/include/media/
Dmedia-entity.h81 unsigned long *bmap; member
432 bitmap_zero(ent_enum->bmap, ent_enum->idx_max); in media_entity_enum_zero()
447 __set_bit(entity->internal_idx, ent_enum->bmap); in media_entity_enum_set()
462 __clear_bit(entity->internal_idx, ent_enum->bmap); in media_entity_enum_clear()
479 return test_bit(entity->internal_idx, ent_enum->bmap); in media_entity_enum_test()
498 return __test_and_set_bit(entity->internal_idx, ent_enum->bmap); in media_entity_enum_test_and_set()
510 return bitmap_empty(ent_enum->bmap, ent_enum->idx_max); in media_entity_enum_empty()
528 return bitmap_intersects(ent_enum1->bmap, ent_enum2->bmap, in media_entity_enum_intersects()
/linux-4.19.296/fs/jfs/
Djfs_dmap.c77 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 …]
Dfile.c79 atomic_inc(&jfs_sb->bmap->db_active[ji->active_ag]); in jfs_open()
92 struct bmap *bmap = JFS_SBI(inode->i_sb)->bmap; in jfs_release() local
93 atomic_dec(&bmap->db_active[ji->active_ag]); in jfs_release()
Djfs_discard.c81 struct bmap *bmp = JFS_SBI(ip->i_sb)->bmap; in jfs_ioc_trim()
Djfs_dmap.h134 #define BLKTOAG(b,sbi) ((b) >> ((sbi)->bmap->db_agl2size))
140 ((s64)(a) << (JFS_SBI((ip)->i_sb)->bmap->db_agl2size))
243 struct bmap { struct
Dsuper.c142 struct bmap *bmap = JFS_SBI(inode->i_sb)->bmap; in jfs_destroy_inode() local
143 atomic_dec(&bmap->db_active[ji->active_ag]); in jfs_destroy_inode()
159 buf->f_blocks = sbi->bmap->db_mapsize; in jfs_statfs()
160 buf->f_bfree = sbi->bmap->db_nfree; in jfs_statfs()
161 buf->f_bavail = sbi->bmap->db_nfree; in jfs_statfs()
172 ((sbi->bmap->db_nfree >> imap->im_l2nbperiext) in jfs_statfs()
Djfs_incore.h193 struct bmap *bmap; /* incore bmap descriptor */ member
Dresize.c70 struct bmap *bmp = sbi->bmap; in jfs_extendfs()
/linux-4.19.296/include/linux/
Dhid.h981 unsigned long *bmap = NULL; in hid_map_usage() local
986 bmap = input->absbit; in hid_map_usage()
990 bmap = input->relbit; in hid_map_usage()
994 bmap = input->keybit; in hid_map_usage()
998 bmap = input->ledbit; in hid_map_usage()
1003 if (unlikely(c > limit || !bmap)) { in hid_map_usage()
1013 *bit = bmap; in hid_map_usage()
/linux-4.19.296/fs/xfs/libxfs/
Dxfs_rmap.c2284 struct xfs_bmbt_irec *bmap) in __xfs_rmap_add() argument
2289 XFS_FSB_TO_AGNO(tp->t_mountp, bmap->br_startblock), in __xfs_rmap_add()
2291 XFS_FSB_TO_AGBNO(tp->t_mountp, bmap->br_startblock), in __xfs_rmap_add()
2293 bmap->br_startoff, in __xfs_rmap_add()
2294 bmap->br_blockcount, in __xfs_rmap_add()
2295 bmap->br_state); in __xfs_rmap_add()
2302 ri->ri_bmap = *bmap; in __xfs_rmap_add()
2371 struct xfs_bmbt_irec bmap; in xfs_rmap_alloc_extent() local
2376 bmap.br_startblock = XFS_AGB_TO_FSB(tp->t_mountp, agno, bno); in xfs_rmap_alloc_extent()
2377 bmap.br_blockcount = len; in xfs_rmap_alloc_extent()
[all …]
/linux-4.19.296/fs/gfs2/
DMakefile4 gfs2-y := acl.o bmap.o dir.o xattr.o glock.o \
/linux-4.19.296/fs/ecryptfs/
Dmmap.c547 if (lower_inode->i_mapping->a_ops->bmap) in ecryptfs_bmap()
548 rc = lower_inode->i_mapping->a_ops->bmap(lower_inode->i_mapping, in ecryptfs_bmap()
558 .bmap = ecryptfs_bmap,
/linux-4.19.296/fs/freevxfs/
Dvxfs_subr.c46 .bmap = vxfs_bmap,
/linux-4.19.296/fs/reiserfs/
Dbitmap.c64 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()

123