Lines Matching refs:dsl

43 	struct xfs_dsymlink_hdr	*dsl = bp->b_addr;  in xfs_symlink_hdr_set()  local
48 memset(dsl, 0, sizeof(struct xfs_dsymlink_hdr)); in xfs_symlink_hdr_set()
49 dsl->sl_magic = cpu_to_be32(XFS_SYMLINK_MAGIC); in xfs_symlink_hdr_set()
50 dsl->sl_offset = cpu_to_be32(offset); in xfs_symlink_hdr_set()
51 dsl->sl_bytes = cpu_to_be32(size); in xfs_symlink_hdr_set()
52 uuid_copy(&dsl->sl_uuid, &mp->m_sb.sb_meta_uuid); in xfs_symlink_hdr_set()
53 dsl->sl_owner = cpu_to_be64(ino); in xfs_symlink_hdr_set()
54 dsl->sl_blkno = cpu_to_be64(xfs_buf_daddr(bp)); in xfs_symlink_hdr_set()
72 struct xfs_dsymlink_hdr *dsl = bp->b_addr; in xfs_symlink_hdr_ok() local
74 if (offset != be32_to_cpu(dsl->sl_offset)) in xfs_symlink_hdr_ok()
76 if (size != be32_to_cpu(dsl->sl_bytes)) in xfs_symlink_hdr_ok()
78 if (ino != be64_to_cpu(dsl->sl_owner)) in xfs_symlink_hdr_ok()
90 struct xfs_dsymlink_hdr *dsl = bp->b_addr; in xfs_symlink_verify() local
94 if (!xfs_verify_magic(bp, dsl->sl_magic)) in xfs_symlink_verify()
96 if (!uuid_equal(&dsl->sl_uuid, &mp->m_sb.sb_meta_uuid)) in xfs_symlink_verify()
98 if (xfs_buf_daddr(bp) != be64_to_cpu(dsl->sl_blkno)) in xfs_symlink_verify()
100 if (be32_to_cpu(dsl->sl_offset) + in xfs_symlink_verify()
101 be32_to_cpu(dsl->sl_bytes) >= XFS_SYMLINK_MAXLEN) in xfs_symlink_verify()
103 if (dsl->sl_owner == 0) in xfs_symlink_verify()
105 if (!xfs_log_check_lsn(mp, be64_to_cpu(dsl->sl_lsn))) in xfs_symlink_verify()
150 struct xfs_dsymlink_hdr *dsl = bp->b_addr; in xfs_symlink_write_verify() local
151 dsl->sl_lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_symlink_write_verify()