Lines Matching refs:dsl
59 struct xfs_dsymlink_hdr *dsl = bp->b_addr; in xfs_symlink_hdr_set() local
64 memset(dsl, 0, sizeof(struct xfs_dsymlink_hdr)); in xfs_symlink_hdr_set()
65 dsl->sl_magic = cpu_to_be32(XFS_SYMLINK_MAGIC); in xfs_symlink_hdr_set()
66 dsl->sl_offset = cpu_to_be32(offset); in xfs_symlink_hdr_set()
67 dsl->sl_bytes = cpu_to_be32(size); in xfs_symlink_hdr_set()
68 uuid_copy(&dsl->sl_uuid, &mp->m_sb.sb_meta_uuid); in xfs_symlink_hdr_set()
69 dsl->sl_owner = cpu_to_be64(ino); in xfs_symlink_hdr_set()
70 dsl->sl_blkno = cpu_to_be64(bp->b_bn); in xfs_symlink_hdr_set()
88 struct xfs_dsymlink_hdr *dsl = bp->b_addr; in xfs_symlink_hdr_ok() local
90 if (offset != be32_to_cpu(dsl->sl_offset)) in xfs_symlink_hdr_ok()
92 if (size != be32_to_cpu(dsl->sl_bytes)) in xfs_symlink_hdr_ok()
94 if (ino != be64_to_cpu(dsl->sl_owner)) in xfs_symlink_hdr_ok()
106 struct xfs_dsymlink_hdr *dsl = bp->b_addr; in xfs_symlink_verify() local
110 if (dsl->sl_magic != cpu_to_be32(XFS_SYMLINK_MAGIC)) in xfs_symlink_verify()
112 if (!uuid_equal(&dsl->sl_uuid, &mp->m_sb.sb_meta_uuid)) in xfs_symlink_verify()
114 if (bp->b_bn != be64_to_cpu(dsl->sl_blkno)) in xfs_symlink_verify()
116 if (be32_to_cpu(dsl->sl_offset) + in xfs_symlink_verify()
117 be32_to_cpu(dsl->sl_bytes) >= MAXPATHLEN) in xfs_symlink_verify()
119 if (dsl->sl_owner == 0) in xfs_symlink_verify()
121 if (!xfs_log_check_lsn(mp, be64_to_cpu(dsl->sl_lsn))) in xfs_symlink_verify()
164 struct xfs_dsymlink_hdr *dsl = bp->b_addr; in xfs_symlink_write_verify() local
165 dsl->sl_lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_symlink_write_verify()