Lines Matching refs:rmt

74 	struct xfs_attr3_rmt_hdr *rmt = ptr;  in xfs_attr3_rmt_hdr_ok()  local
76 if (bno != be64_to_cpu(rmt->rm_blkno)) in xfs_attr3_rmt_hdr_ok()
78 if (offset != be32_to_cpu(rmt->rm_offset)) in xfs_attr3_rmt_hdr_ok()
80 if (size != be32_to_cpu(rmt->rm_bytes)) in xfs_attr3_rmt_hdr_ok()
82 if (ino != be64_to_cpu(rmt->rm_owner)) in xfs_attr3_rmt_hdr_ok()
97 struct xfs_attr3_rmt_hdr *rmt = ptr; in xfs_attr3_rmt_verify() local
99 if (!xfs_verify_magic(bp, rmt->rm_magic)) in xfs_attr3_rmt_verify()
101 if (!uuid_equal(&rmt->rm_uuid, &mp->m_sb.sb_meta_uuid)) in xfs_attr3_rmt_verify()
103 if (be64_to_cpu(rmt->rm_blkno) != bno) in xfs_attr3_rmt_verify()
105 if (be32_to_cpu(rmt->rm_bytes) > fsbsize - sizeof(*rmt)) in xfs_attr3_rmt_verify()
107 if (be32_to_cpu(rmt->rm_offset) + in xfs_attr3_rmt_verify()
108 be32_to_cpu(rmt->rm_bytes) > XFS_XATTR_SIZE_MAX) in xfs_attr3_rmt_verify()
110 if (rmt->rm_owner == 0) in xfs_attr3_rmt_verify()
203 struct xfs_attr3_rmt_hdr *rmt = (struct xfs_attr3_rmt_hdr *)ptr; in xfs_attr3_rmt_write_verify() local
215 if (rmt->rm_lsn != cpu_to_be64(NULLCOMMITLSN)) { in xfs_attr3_rmt_write_verify()
247 struct xfs_attr3_rmt_hdr *rmt = ptr; in xfs_attr3_rmt_hdr_set() local
252 rmt->rm_magic = cpu_to_be32(XFS_ATTR3_RMT_MAGIC); in xfs_attr3_rmt_hdr_set()
253 rmt->rm_offset = cpu_to_be32(offset); in xfs_attr3_rmt_hdr_set()
254 rmt->rm_bytes = cpu_to_be32(size); in xfs_attr3_rmt_hdr_set()
255 uuid_copy(&rmt->rm_uuid, &mp->m_sb.sb_meta_uuid); in xfs_attr3_rmt_hdr_set()
256 rmt->rm_owner = cpu_to_be64(ino); in xfs_attr3_rmt_hdr_set()
257 rmt->rm_blkno = cpu_to_be64(bno); in xfs_attr3_rmt_hdr_set()
269 rmt->rm_lsn = cpu_to_be64(NULLCOMMITLSN); in xfs_attr3_rmt_hdr_set()