Home
last modified time | relevance | path

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

/linux-4.4.14/fs/nilfs2/
Dbmap.c35 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 …]
Ddirect.c118 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 …]
Dbmap.h135 #define NILFS_BMAP_USE_VBN(bmap) ((bmap)->b_ptr_type > 0) argument
158 int nilfs_bmap_insert(struct nilfs_bmap *bmap, __u64 key, unsigned long rec);
159 int nilfs_bmap_delete(struct nilfs_bmap *bmap, __u64 key);
160 int nilfs_bmap_seek_key(struct nilfs_bmap *bmap, __u64 start, __u64 *keyp);
161 int nilfs_bmap_last_key(struct nilfs_bmap *bmap, __u64 *keyp);
162 int nilfs_bmap_truncate(struct nilfs_bmap *bmap, __u64 key);
176 static inline int nilfs_bmap_lookup(struct nilfs_bmap *bmap, __u64 key, in nilfs_bmap_lookup() argument
179 return nilfs_bmap_lookup_at_level(bmap, key, 1, ptr); in nilfs_bmap_lookup()
187 static inline int nilfs_bmap_prepare_alloc_ptr(struct nilfs_bmap *bmap, in nilfs_bmap_prepare_alloc_ptr() argument
194 req->bpr_ptr = bmap->b_last_allocated_ptr++; in nilfs_bmap_prepare_alloc_ptr()
[all …]
DMakefile3 btnode.o bmap.o btree.o direct.o dat.o recovery.o \
Dnilfs.h84 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()
Dbtree.c34 static void __nilfs_btree_init(struct nilfs_bmap *bmap);
2385 static void __nilfs_btree_init(struct nilfs_bmap *bmap) in __nilfs_btree_init() argument
2387 bmap->b_ops = &nilfs_btree_ops; in __nilfs_btree_init()
2388 bmap->b_nchildren_per_block = in __nilfs_btree_init()
2389 NILFS_BTREE_NODE_NCHILDREN_MAX(nilfs_btree_node_size(bmap)); in __nilfs_btree_init()
2392 int nilfs_btree_init(struct nilfs_bmap *bmap) in nilfs_btree_init() argument
2396 __nilfs_btree_init(bmap); in nilfs_btree_init()
2398 if (nilfs_btree_root_broken(nilfs_btree_get_root(bmap), in nilfs_btree_init()
2399 bmap->b_inode->i_ino)) in nilfs_btree_init()
2404 void nilfs_btree_init_gc(struct nilfs_bmap *bmap) in nilfs_btree_init_gc() argument
[all …]
Dioctl.c486 struct nilfs_bmap *bmap = NILFS_I(nilfs->ns_dat)->i_bmap; in nilfs_ioctl_do_get_bdescs() local
492 ret = nilfs_bmap_lookup_at_level(bmap, in nilfs_ioctl_do_get_bdescs()
784 struct nilfs_bmap *bmap = NILFS_I(nilfs->ns_dat)->i_bmap; in nilfs_ioctl_mark_blocks_dirty() local
790 ret = nilfs_bmap_lookup_at_level(bmap, in nilfs_ioctl_mark_blocks_dirty()
810 ret = nilfs_bmap_mark(bmap, bdescs[i].bd_offset, in nilfs_ioctl_mark_blocks_dirty()
/linux-4.4.14/include/uapi/linux/netfilter/
Dxt_TCPOPTSTRIP.h6 #define tcpoptstrip_set_bit(bmap, idx) \ argument
7 (bmap[(idx) >> 5] |= 1U << (idx & 31))
8 #define tcpoptstrip_test_bit(bmap, idx) \ argument
9 (((1U << (idx & 31)) & bmap[(idx) >> 5]) != 0)
/linux-4.4.14/fs/affs/
Dbitmap.c43 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()
121 u32 blk, bmap, bit, mask, mask2, tmp; in affs_alloc_block() local
144 bmap = blk / sbi->s_bmap_bits; in affs_alloc_block()
145 bm = &sbi->s_bitmap[bmap]; in affs_alloc_block()
158 bmap++; in affs_alloc_block()
160 if (bmap < sbi->s_bmap_count) in affs_alloc_block()
[all …]
Dfile.c440 .bmap = _affs_bmap
/linux-4.4.14/drivers/net/ethernet/brocade/bna/
Dbnad_ethtool.c550 u32 bmap; in bnad_get_strings() local
563 bmap = bna_tx_rid_mask(&bnad->bna); in bnad_get_strings()
564 for (i = 0; bmap; i++) { in bnad_get_strings()
565 if (bmap & 1) { in bnad_get_strings()
591 bmap >>= 1; in bnad_get_strings()
594 bmap = bna_rx_rid_mask(&bnad->bna); in bnad_get_strings()
595 for (i = 0; bmap; i++) { in bnad_get_strings()
596 if (bmap & 1) { in bnad_get_strings()
618 bmap >>= 1; in bnad_get_strings()
726 u32 bmap; in bnad_get_stats_count_locked() local
[all …]
Dbnad.c2446 u32 bmap; in bnad_netdev_hwstats_fill() local
2468 bmap = bna_rx_rid_mask(&bnad->bna); in bnad_netdev_hwstats_fill()
2469 for (i = 0; bmap; i++) { in bnad_netdev_hwstats_fill()
2470 if (bmap & 1) { in bnad_netdev_hwstats_fill()
2476 bmap >>= 1; in bnad_netdev_hwstats_fill()
/linux-4.4.14/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.c83 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.c141 struct bmap *bmap = JFS_SBI(inode->i_sb)->bmap; in jfs_destroy_inode() local
142 atomic_dec(&bmap->db_active[ji->active_ag]); in jfs_destroy_inode()
158 buf->f_blocks = sbi->bmap->db_mapsize; in jfs_statfs()
159 buf->f_bfree = sbi->bmap->db_nfree; in jfs_statfs()
160 buf->f_bavail = sbi->bmap->db_nfree; in jfs_statfs()
171 ((sbi->bmap->db_nfree >> imap->im_l2nbperiext) in jfs_statfs()
Djfs_incore.h192 struct bmap *bmap; /* incore bmap descriptor */ member
Dresize.c70 struct bmap *bmp = sbi->bmap; in jfs_extendfs()
Djfs_extent.c515 struct bmap *bmp = sbi->bmap; in extBalloc()
Dinode.c367 .bmap = jfs_bmap,
Djfs_imap.c1381 if (atomic_read(&JFS_SBI(pip->i_sb)->bmap->db_active[agno])) { in diAlloc()
1722 int maxag = JFS_SBI(imap->im_ipimap->i_sb)->bmap->db_maxag; in diAllocAny()
2268 hint = ((s64) agno << sbi->bmap->db_agl2size) - 1; in diNewExt()
2864 struct bmap *mp = JFS_SBI(ipbmap->i_sb)->bmap; in diExtendFS()
/linux-4.4.14/arch/sparc/mm/
Dio-unit.c115 nexti: scan = find_next_zero_bit(iounit->bmap, limit, scan); in iounit_get_area()
128 if (test_bit(scan++, iounit->bmap)) in iounit_get_area()
135 set_bit(scan, iounit->bmap); in iounit_get_area()
179 clear_bit(vaddr, iounit->bmap); in iounit_release_scsi_one()
196 clear_bit(vaddr, iounit->bmap); in iounit_release_scsi_sgl()
/linux-4.4.14/drivers/staging/lustre/lnet/lnet/
Dlib-ptl.c315 __u64 *bmap; in lnet_mt_test_exhausted() local
331 bmap = &mtable->mt_exhausted[pos >> LNET_MT_BITS_U64]; in lnet_mt_test_exhausted()
334 return ((*bmap) & (1ULL << pos)) != 0; in lnet_mt_test_exhausted()
340 __u64 *bmap; in lnet_mt_set_exhausted() local
346 bmap = &mtable->mt_exhausted[pos >> LNET_MT_BITS_U64]; in lnet_mt_set_exhausted()
350 *bmap &= ~(1ULL << pos); in lnet_mt_set_exhausted()
352 *bmap |= 1ULL << pos; in lnet_mt_set_exhausted()
/linux-4.4.14/arch/sparc/include/asm/
Dio-unit.h44 unsigned long bmap[(IOUNIT_DMA_SIZE >> (PAGE_SHIFT + 3)) / sizeof(unsigned long)]; member
/linux-4.4.14/fs/gfs2/
DMakefile3 gfs2-y := acl.o bmap.o dir.o xattr.o glock.o \
Daops.c1179 .bmap = gfs2_bmap,
1196 .bmap = gfs2_bmap,
1213 .bmap = gfs2_bmap,
/linux-4.4.14/fs/ecryptfs/
Dmmap.c549 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,
/linux-4.4.14/virt/kvm/arm/
Dvgic-v3-emul.c283 unsigned long *bmap, mpidr; in handle_mmio_route_reg() local
315 bmap = vgic_bitmap_get_shared_map(&dist->irq_spi_target[vcpu_id]); in handle_mmio_route_reg()
316 __clear_bit(spi, bmap); in handle_mmio_route_reg()
332 bmap = vgic_bitmap_get_shared_map(&dist->irq_spi_target[vcpu_id]); in handle_mmio_route_reg()
333 __set_bit(spi, bmap); in handle_mmio_route_reg()
Dvgic-v2-emul.c159 unsigned long *bmap; in vgic_set_target_reg() local
176 bmap = vgic_bitmap_get_shared_map(&dist->irq_spi_target[c]); in vgic_set_target_reg()
178 set_bit(irq + i, bmap); in vgic_set_target_reg()
180 clear_bit(irq + i, bmap); in vgic_set_target_reg()
/linux-4.4.14/fs/freevxfs/
Dvxfs_subr.c46 .bmap = vxfs_bmap,
/linux-4.4.14/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()
Dprocfs.c217 SFPF(bmap), in show_bitmap()
Dreiserfs.h485 stat_cnt_t bmap; member
Dinode.c3461 .bmap = reiserfs_aop_bmap,
/linux-4.4.14/drivers/mfd/
Ddln2.c84 DECLARE_BITMAP(bmap, DLN2_MAX_RX_SLOTS);
365 *slot = find_first_zero_bit(rxs->bmap, DLN2_MAX_RX_SLOTS); in find_free_slot()
370 set_bit(*slot, rxs->bmap); in find_free_slot()
407 clear_bit(slot, rxs->bmap); in free_rx_slot()
/linux-4.4.14/mm/
Dpage_io.c163 first_block = bmap(inode, probe_block); in generic_swapfile_activate()
179 block = bmap(inode, probe_block + block_in_page); in generic_swapfile_activate()
/linux-4.4.14/fs/cachefiles/
Drdwr.c413 ASSERT(inode->i_mapping->a_ops->bmap); in cachefiles_read_or_alloc_page()
432 block = inode->i_mapping->a_ops->bmap(inode->i_mapping, block0); in cachefiles_read_or_alloc_page()
707 ASSERT(inode->i_mapping->a_ops->bmap); in cachefiles_read_or_alloc_pages()
735 block = inode->i_mapping->a_ops->bmap(inode->i_mapping, in cachefiles_read_or_alloc_pages()
Dnamei.c656 if (!aops->bmap) in cachefiles_walk_to_object()
/linux-4.4.14/fs/bfs/
Dfile.c194 .bmap = bfs_bmap,
/linux-4.4.14/fs/
Dioctl.c56 if (!mapping->a_ops->bmap) in ioctl_fibmap()
63 res = mapping->a_ops->bmap(mapping, block); in ioctl_fibmap()
Dinode.c1520 sector_t bmap(struct inode *inode, sector_t block) in bmap() function
1523 if (inode->i_mapping->a_ops->bmap) in bmap()
1524 res = inode->i_mapping->a_ops->bmap(inode->i_mapping, block); in bmap()
1527 EXPORT_SYMBOL(bmap);
/linux-4.4.14/fs/hpfs/
Dfile.c199 .bmap = _hpfs_bmap
/linux-4.4.14/Documentation/power/
Dswsusp-and-swap-files.txt30 2) Use an application that will bmap the swap file with the help of the
/linux-4.4.14/fs/hfsplus/
Dinode.c162 .bmap = hfsplus_bmap,
171 .bmap = hfsplus_bmap,
/linux-4.4.14/fs/efs/
Dinode.c26 .bmap = _efs_bmap
/linux-4.4.14/fs/adfs/
Dinode.c82 .bmap = _adfs_bmap
/linux-4.4.14/fs/hfs/
Dinode.c164 .bmap = hfs_bmap,
173 .bmap = hfs_bmap,
/linux-4.4.14/fs/omfs/
Dfile.c381 .bmap = omfs_bmap,
/linux-4.4.14/fs/qnx4/
Dinode.c257 .bmap = qnx4_bmap
/linux-4.4.14/fs/nfsd/
Dnfs4proc.c1786 u32 *bmap = op->u.getattr.ga_bmval; in nfsd4_getattr_rsize() local
1787 u32 bmap0 = bmap[0], bmap1 = bmap[1], bmap2 = bmap[2]; in nfsd4_getattr_rsize()
Dnfs4state.c932 bmap_to_share_mode(unsigned long bmap) { in bmap_to_share_mode() argument
937 if (test_bit(i, &bmap)) in bmap_to_share_mode()
/linux-4.4.14/Documentation/filesystems/
DLocking195 sector_t (*bmap)(struct address_space *, sector_t);
219 bmap:
308 ->bmap() is currently used by legacy ioctl() (FIBMAP) provided by some
Dfiemap.txt6 extent mappings. Instead of block-by-block mapping (such as bmap), fiemap
Dvfs.txt591 sector_t (*bmap)(struct address_space *, sector_t);
692 bmap: called by the VFS to map a logical block offset within object to
697 but instead uses bmap to find out where the blocks in the file
/linux-4.4.14/fs/sysv/
Ditree.c500 .bmap = sysv_bmap
/linux-4.4.14/Documentation/DocBook/
Dfilesystems.xml.db58 API-bmap
/linux-4.4.14/fs/ext2/
Dinode.c886 .bmap = ext2_bmap,
900 .bmap = ext2_bmap,
/linux-4.4.14/fs/qnx6/
Dinode.c500 .bmap = qnx6_bmap
/linux-4.4.14/Documentation/filesystems/caching/
Dcachefiles.txt74 - bmap() support on files in the filesystem (FIBMAP ioctl).
76 - The use of bmap() to detect a partial page at the end of the file.
/linux-4.4.14/fs/befs/
Dlinuxvfs.c79 .bmap = befs_bmap,
/linux-4.4.14/fs/minix/
Dinode.c433 .bmap = minix_bmap
/linux-4.4.14/sound/usb/
Dmixer.c562 static int check_matrix_bitmap(unsigned char *bmap, in check_matrix_bitmap() argument
566 return bmap[idx >> 3] & (0x80 >> (idx & 7)); in check_matrix_bitmap()
/linux-4.4.14/include/linux/
Dfs.h389 sector_t (*bmap)(struct address_space *, sector_t); member
2444 extern sector_t bmap(struct inode *, sector_t);
/linux-4.4.14/fs/isofs/
Dinode.c1136 .bmap = _isofs_bmap
/linux-4.4.14/fs/ntfs/
Daops.c1675 .bmap = ntfs_bmap,
/linux-4.4.14/fs/ufs/
Dinode.c516 .bmap = ufs_bmap
/linux-4.4.14/fs/exofs/
Dinode.c981 .bmap = NULL, /* TODO: use osd's OSD_ACT_READ_MAP */
/linux-4.4.14/fs/ext4/
Dinode.c3342 .bmap = ext4_bmap,
3359 .bmap = ext4_bmap,
3374 .bmap = ext4_bmap,
/linux-4.4.14/fs/f2fs/
Ddata.c1697 .bmap = f2fs_bmap,
/linux-4.4.14/fs/xfs/
Dxfs_aops.c2011 .bmap = xfs_vm_bmap,
/linux-4.4.14/fs/jbd2/
Djournal.c782 ret = bmap(journal->j_inode, blocknr); in jbd2_journal_bmap()
/linux-4.4.14/fs/fat/
Dinode.c308 .bmap = _fat_bmap
/linux-4.4.14/fs/ocfs2/
Daops.c2481 .bmap = ocfs2_bmap,
Dsuballoc.c2376 unsigned long *bmap)) in ocfs2_block_group_clear_bits() argument
/linux-4.4.14/drivers/md/
Dbitmap.c380 bh->b_blocknr = bmap(inode, block); in read_page()
/linux-4.4.14/fs/udf/
Dinode.c245 .bmap = udf_bmap,
/linux-4.4.14/fs/fuse/
Dfile.c2999 .bmap = fuse_bmap,