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