Lines Matching refs:rmt

75 	struct xfs_attr3_rmt_hdr *rmt = ptr;  in xfs_attr3_rmt_hdr_ok()  local
77 if (bno != be64_to_cpu(rmt->rm_blkno)) in xfs_attr3_rmt_hdr_ok()
79 if (offset != be32_to_cpu(rmt->rm_offset)) in xfs_attr3_rmt_hdr_ok()
81 if (size != be32_to_cpu(rmt->rm_bytes)) in xfs_attr3_rmt_hdr_ok()
83 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
101 if (rmt->rm_magic != cpu_to_be32(XFS_ATTR3_RMT_MAGIC)) in xfs_attr3_rmt_verify()
103 if (!uuid_equal(&rmt->rm_uuid, &mp->m_sb.sb_meta_uuid)) in xfs_attr3_rmt_verify()
105 if (be64_to_cpu(rmt->rm_blkno) != bno) in xfs_attr3_rmt_verify()
107 if (be32_to_cpu(rmt->rm_bytes) > fsbsize - sizeof(*rmt)) in xfs_attr3_rmt_verify()
109 if (be32_to_cpu(rmt->rm_offset) + in xfs_attr3_rmt_verify()
110 be32_to_cpu(rmt->rm_bytes) > XFS_XATTR_SIZE_MAX) in xfs_attr3_rmt_verify()
112 if (rmt->rm_owner == 0) in xfs_attr3_rmt_verify()
177 struct xfs_attr3_rmt_hdr *rmt = (struct xfs_attr3_rmt_hdr *)ptr; in xfs_attr3_rmt_write_verify() local
189 if (rmt->rm_lsn != cpu_to_be64(NULLCOMMITLSN)) { in xfs_attr3_rmt_write_verify()
218 struct xfs_attr3_rmt_hdr *rmt = ptr; in xfs_attr3_rmt_hdr_set() local
223 rmt->rm_magic = cpu_to_be32(XFS_ATTR3_RMT_MAGIC); in xfs_attr3_rmt_hdr_set()
224 rmt->rm_offset = cpu_to_be32(offset); in xfs_attr3_rmt_hdr_set()
225 rmt->rm_bytes = cpu_to_be32(size); in xfs_attr3_rmt_hdr_set()
226 uuid_copy(&rmt->rm_uuid, &mp->m_sb.sb_meta_uuid); in xfs_attr3_rmt_hdr_set()
227 rmt->rm_owner = cpu_to_be64(ino); in xfs_attr3_rmt_hdr_set()
228 rmt->rm_blkno = cpu_to_be64(bno); in xfs_attr3_rmt_hdr_set()
240 rmt->rm_lsn = cpu_to_be64(NULLCOMMITLSN); in xfs_attr3_rmt_hdr_set()