Lines Matching refs:dsl

47 	struct xfs_dsymlink_hdr	*dsl = bp->b_addr;  in xfs_symlink_hdr_set()  local
52 memset(dsl, 0, sizeof(struct xfs_dsymlink_hdr)); in xfs_symlink_hdr_set()
53 dsl->sl_magic = cpu_to_be32(XFS_SYMLINK_MAGIC); in xfs_symlink_hdr_set()
54 dsl->sl_offset = cpu_to_be32(offset); in xfs_symlink_hdr_set()
55 dsl->sl_bytes = cpu_to_be32(size); in xfs_symlink_hdr_set()
56 uuid_copy(&dsl->sl_uuid, &mp->m_sb.sb_meta_uuid); in xfs_symlink_hdr_set()
57 dsl->sl_owner = cpu_to_be64(ino); in xfs_symlink_hdr_set()
58 dsl->sl_blkno = cpu_to_be64(bp->b_bn); in xfs_symlink_hdr_set()
76 struct xfs_dsymlink_hdr *dsl = bp->b_addr; in xfs_symlink_hdr_ok() local
78 if (offset != be32_to_cpu(dsl->sl_offset)) in xfs_symlink_hdr_ok()
80 if (size != be32_to_cpu(dsl->sl_bytes)) in xfs_symlink_hdr_ok()
82 if (ino != be64_to_cpu(dsl->sl_owner)) in xfs_symlink_hdr_ok()
94 struct xfs_dsymlink_hdr *dsl = bp->b_addr; in xfs_symlink_verify() local
98 if (dsl->sl_magic != cpu_to_be32(XFS_SYMLINK_MAGIC)) in xfs_symlink_verify()
100 if (!uuid_equal(&dsl->sl_uuid, &mp->m_sb.sb_meta_uuid)) in xfs_symlink_verify()
102 if (bp->b_bn != be64_to_cpu(dsl->sl_blkno)) in xfs_symlink_verify()
104 if (be32_to_cpu(dsl->sl_offset) + in xfs_symlink_verify()
105 be32_to_cpu(dsl->sl_bytes) >= XFS_SYMLINK_MAXLEN) in xfs_symlink_verify()
107 if (dsl->sl_owner == 0) in xfs_symlink_verify()
109 if (!xfs_log_check_lsn(mp, be64_to_cpu(dsl->sl_lsn))) in xfs_symlink_verify()
154 struct xfs_dsymlink_hdr *dsl = bp->b_addr; in xfs_symlink_write_verify() local
155 dsl->sl_lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_symlink_write_verify()