Home
last modified time | relevance | path

Searched refs:rmap (Results 1 – 9 of 9) sorted by relevance

/fs/xfs/
Dxfs_rmap_item.c247 struct xfs_map_extent *rmap, in xfs_trans_set_rmap_flags() argument
252 rmap->me_flags = 0; in xfs_trans_set_rmap_flags()
254 rmap->me_flags |= XFS_RMAP_EXTENT_UNWRITTEN; in xfs_trans_set_rmap_flags()
256 rmap->me_flags |= XFS_RMAP_EXTENT_ATTR_FORK; in xfs_trans_set_rmap_flags()
259 rmap->me_flags |= XFS_RMAP_EXTENT_MAP; in xfs_trans_set_rmap_flags()
262 rmap->me_flags |= XFS_RMAP_EXTENT_MAP_SHARED; in xfs_trans_set_rmap_flags()
265 rmap->me_flags |= XFS_RMAP_EXTENT_UNMAP; in xfs_trans_set_rmap_flags()
268 rmap->me_flags |= XFS_RMAP_EXTENT_UNMAP_SHARED; in xfs_trans_set_rmap_flags()
271 rmap->me_flags |= XFS_RMAP_EXTENT_CONVERT; in xfs_trans_set_rmap_flags()
274 rmap->me_flags |= XFS_RMAP_EXTENT_CONVERT_SHARED; in xfs_trans_set_rmap_flags()
[all …]
Dxfs_fsmap.c411 struct xfs_rmap_irec rmap; in xfs_getfsmap_logdev() local
440 rmap.rm_startblock = 0; in xfs_getfsmap_logdev()
441 rmap.rm_blockcount = mp->m_sb.sb_logblocks; in xfs_getfsmap_logdev()
442 rmap.rm_owner = XFS_RMAP_OWN_LOG; in xfs_getfsmap_logdev()
443 rmap.rm_offset = 0; in xfs_getfsmap_logdev()
444 rmap.rm_flags = 0; in xfs_getfsmap_logdev()
446 return xfs_getfsmap_helper(tp, info, &rmap, 0); in xfs_getfsmap_logdev()
DMakefile159 rmap.o \
Dxfs_trace.h3459 const struct xfs_rmap_irec *rmap),
3460 TP_ARGS(mp, keydev, agno, rmap),
3475 __entry->bno = rmap->rm_startblock;
3476 __entry->len = rmap->rm_blockcount;
3477 __entry->owner = rmap->rm_owner;
3478 __entry->offset = rmap->rm_offset;
3479 __entry->flags = rmap->rm_flags;
3494 const struct xfs_rmap_irec *rmap), \
3495 TP_ARGS(mp, keydev, agno, rmap))
/fs/xfs/libxfs/
Dxfs_rmap_btree.c164 key->rmap.rm_startblock = rec->rmap.rm_startblock; in xfs_rmapbt_init_key_from_rec()
165 key->rmap.rm_owner = rec->rmap.rm_owner; in xfs_rmapbt_init_key_from_rec()
166 key->rmap.rm_offset = rec->rmap.rm_offset; in xfs_rmapbt_init_key_from_rec()
184 adj = be32_to_cpu(rec->rmap.rm_blockcount) - 1; in xfs_rmapbt_init_high_key_from_rec()
186 key->rmap.rm_startblock = rec->rmap.rm_startblock; in xfs_rmapbt_init_high_key_from_rec()
187 be32_add_cpu(&key->rmap.rm_startblock, adj); in xfs_rmapbt_init_high_key_from_rec()
188 key->rmap.rm_owner = rec->rmap.rm_owner; in xfs_rmapbt_init_high_key_from_rec()
189 key->rmap.rm_offset = rec->rmap.rm_offset; in xfs_rmapbt_init_high_key_from_rec()
190 if (XFS_RMAP_NON_INODE_OWNER(be64_to_cpu(rec->rmap.rm_owner)) || in xfs_rmapbt_init_high_key_from_rec()
191 XFS_RMAP_IS_BMBT_BLOCK(be64_to_cpu(rec->rmap.rm_offset))) in xfs_rmapbt_init_high_key_from_rec()
[all …]
Dxfs_rmap.c104 rec.rmap.rm_startblock = cpu_to_be32(irec->rm_startblock); in xfs_rmap_update()
105 rec.rmap.rm_blockcount = cpu_to_be32(irec->rm_blockcount); in xfs_rmap_update()
106 rec.rmap.rm_owner = cpu_to_be64(irec->rm_owner); in xfs_rmap_update()
107 rec.rmap.rm_offset = cpu_to_be64( in xfs_rmap_update()
201 irec->rm_startblock = be32_to_cpu(rec->rmap.rm_startblock); in xfs_rmap_btrec_to_irec()
202 irec->rm_blockcount = be32_to_cpu(rec->rmap.rm_blockcount); in xfs_rmap_btrec_to_irec()
203 irec->rm_owner = be64_to_cpu(rec->rmap.rm_owner); in xfs_rmap_btrec_to_irec()
204 return xfs_rmap_irec_offset_unpack(be64_to_cpu(rec->rmap.rm_offset), in xfs_rmap_btrec_to_irec()
2285 struct xfs_rmap_irec *rmap) in xfs_rmap_map_raw() argument
2289 oinfo.oi_owner = rmap->rm_owner; in xfs_rmap_map_raw()
[all …]
Dxfs_btree.h37 struct xfs_rmap_key rmap; member
47 struct xfs_rmap_rec rmap; member
Dxfs_rmap.h203 int xfs_rmap_map_raw(struct xfs_btree_cur *cur, struct xfs_rmap_irec *rmap);
/fs/xfs/scrub/
Dbmap.c107 struct xfs_rmap_irec *rmap) in xchk_bmap_get_rmap() argument
135 owner, offset, rflags, rmap, &has_rmap); in xchk_bmap_get_rmap()
138 owner, offset, rflags, rmap, &has_rmap); in xchk_bmap_get_rmap()
156 struct xfs_rmap_irec rmap; in xchk_bmap_xref_rmap() local
169 if (!xchk_bmap_get_rmap(info, irec, agbno, owner, &rmap)) in xchk_bmap_xref_rmap()
173 rmap_end = (unsigned long long)rmap.rm_startblock + rmap.rm_blockcount; in xchk_bmap_xref_rmap()
174 if (rmap.rm_startblock > agbno || in xchk_bmap_xref_rmap()
185 rmap_end = (unsigned long long)rmap.rm_offset + in xchk_bmap_xref_rmap()
186 rmap.rm_blockcount; in xchk_bmap_xref_rmap()
187 if (rmap.rm_offset > irec->br_startoff || in xchk_bmap_xref_rmap()
[all …]