Home
last modified time | relevance | path

Searched refs:b_maps (Results 1 – 5 of 5) sorted by relevance

/Linux-v5.4/fs/xfs/
Dxfs_buf.c173 ASSERT(bp->b_maps == NULL); in xfs_buf_get_maps()
177 bp->b_maps = &bp->__b_map; in xfs_buf_get_maps()
181 bp->b_maps = kmem_zalloc(map_count * sizeof(struct xfs_buf_map), in xfs_buf_get_maps()
183 if (!bp->b_maps) in xfs_buf_get_maps()
195 if (bp->b_maps != &bp->__b_map) { in xfs_buf_free_maps()
196 kmem_free(bp->b_maps); in xfs_buf_free_maps()
197 bp->b_maps = NULL; in xfs_buf_free_maps()
248 bp->b_maps[i].bm_bn = map[i].bm_bn; in _xfs_buf_alloc()
249 bp->b_maps[i].bm_len = map[i].bm_len; in _xfs_buf_alloc()
389 start = BBTOB(bp->b_maps[0].bm_bn) >> PAGE_SHIFT; in xfs_buf_allocate_memory()
[all …]
Dxfs_buf_item.c341 offset += BBTOB(bp->b_maps[i].bm_len); in xfs_buf_item_format()
772 chunks = DIV_ROUND_UP(BBTOB(bp->b_maps[i].bm_len), in xfs_buf_item_init()
777 bip->bli_formats[i].blf_blkno = bp->b_maps[i].bm_bn; in xfs_buf_item_init()
778 bip->bli_formats[i].blf_len = bp->b_maps[i].bm_len; in xfs_buf_item_init()
891 end = start + BBTOB(bp->b_maps[i].bm_len) - 1; in xfs_buf_item_log()
895 start += BBTOB(bp->b_maps[i].bm_len); in xfs_buf_item_log()
912 start += BBTOB(bp->b_maps[i].bm_len); in xfs_buf_item_log()
Dxfs_buf.h159 struct xfs_buf_map *b_maps; /* compound buffer map */ member
299 #define XFS_BUF_ADDR(bp) ((bp)->b_maps[0].bm_bn)
300 #define XFS_BUF_SET_ADDR(bp, bno) ((bp)->b_maps[0].bm_bn = (xfs_daddr_t)(bno))
Dxfs_trace.h289 __entry->bno = bp->b_maps[0].bm_bn;
/Linux-v5.4/fs/xfs/libxfs/
Dxfs_ag.c41 bp->b_maps[0].bm_bn = blkno; in xfs_get_aghdr_buf()