Lines Matching refs:tl
589 struct ext4_fc_tl *tl; in ext4_fc_reserve_space() local
618 tl = (struct ext4_fc_tl *)(sbi->s_fc_bh->b_data + off); in ext4_fc_reserve_space()
619 tl->fc_tag = cpu_to_le16(EXT4_FC_TAG_PAD); in ext4_fc_reserve_space()
621 tl->fc_len = cpu_to_le16(pad_len); in ext4_fc_reserve_space()
623 *crc = ext4_chksum(sbi, *crc, tl, sizeof(*tl)); in ext4_fc_reserve_space()
625 ext4_fc_memzero(sb, tl + 1, pad_len, crc); in ext4_fc_reserve_space()
656 struct ext4_fc_tl tl; in ext4_fc_write_tail() local
665 dst = ext4_fc_reserve_space(sb, sizeof(tl) + sizeof(tail), &crc); in ext4_fc_write_tail()
671 tl.fc_tag = cpu_to_le16(EXT4_FC_TAG_TAIL); in ext4_fc_write_tail()
672 tl.fc_len = cpu_to_le16(bsize - off - 1 + sizeof(struct ext4_fc_tail)); in ext4_fc_write_tail()
675 ext4_fc_memcpy(sb, dst, &tl, sizeof(tl), &crc); in ext4_fc_write_tail()
676 dst += sizeof(tl); in ext4_fc_write_tail()
695 struct ext4_fc_tl tl; in ext4_fc_add_tlv() local
698 dst = ext4_fc_reserve_space(sb, sizeof(tl) + len, crc); in ext4_fc_add_tlv()
702 tl.fc_tag = cpu_to_le16(tag); in ext4_fc_add_tlv()
703 tl.fc_len = cpu_to_le16(len); in ext4_fc_add_tlv()
705 ext4_fc_memcpy(sb, dst, &tl, sizeof(tl), crc); in ext4_fc_add_tlv()
706 ext4_fc_memcpy(sb, dst + sizeof(tl), val, len, crc); in ext4_fc_add_tlv()
718 struct ext4_fc_tl tl; in ext4_fc_add_dentry_tlv() local
719 u8 *dst = ext4_fc_reserve_space(sb, sizeof(tl) + sizeof(fcd) + dlen, in ext4_fc_add_dentry_tlv()
727 tl.fc_tag = cpu_to_le16(tag); in ext4_fc_add_dentry_tlv()
728 tl.fc_len = cpu_to_le16(sizeof(fcd) + dlen); in ext4_fc_add_dentry_tlv()
729 ext4_fc_memcpy(sb, dst, &tl, sizeof(tl), crc); in ext4_fc_add_dentry_tlv()
730 dst += sizeof(tl); in ext4_fc_add_dentry_tlv()
750 struct ext4_fc_tl tl; in ext4_fc_write_inode() local
761 tl.fc_tag = cpu_to_le16(EXT4_FC_TAG_INODE); in ext4_fc_write_inode()
762 tl.fc_len = cpu_to_le16(inode_len + sizeof(fc_inode.fc_ino)); in ext4_fc_write_inode()
765 sizeof(tl) + inode_len + sizeof(fc_inode.fc_ino), crc); in ext4_fc_write_inode()
769 if (!ext4_fc_memcpy(inode->i_sb, dst, &tl, sizeof(tl), crc)) in ext4_fc_write_inode()
771 dst += sizeof(tl); in ext4_fc_write_inode()
1224 static inline int ext4_fc_tag_len(struct ext4_fc_tl *tl) in ext4_fc_tag_len() argument
1226 return le16_to_cpu(tl->fc_len); in ext4_fc_tag_len()
1230 static inline u8 *ext4_fc_tag_val(struct ext4_fc_tl *tl) in ext4_fc_tag_val() argument
1232 return (u8 *)tl + sizeof(*tl); in ext4_fc_tag_val()
1242 struct ext4_fc_tl *tl) in tl_to_darg() argument
1246 fcd = (struct ext4_fc_dentry_info *)ext4_fc_tag_val(tl); in tl_to_darg()
1251 darg->dname_len = ext4_fc_tag_len(tl) - in tl_to_darg()
1256 static int ext4_fc_replay_unlink(struct super_block *sb, struct ext4_fc_tl *tl) in ext4_fc_replay_unlink() argument
1263 tl_to_darg(&darg, tl); in ext4_fc_replay_unlink()
1353 static int ext4_fc_replay_link(struct super_block *sb, struct ext4_fc_tl *tl) in ext4_fc_replay_link() argument
1359 tl_to_darg(&darg, tl); in ext4_fc_replay_link()
1404 static int ext4_fc_replay_inode(struct super_block *sb, struct ext4_fc_tl *tl) in ext4_fc_replay_inode() argument
1411 int inode_len, ino, ret, tag = le16_to_cpu(tl->fc_tag); in ext4_fc_replay_inode()
1414 fc_inode = (struct ext4_fc_inode *)ext4_fc_tag_val(tl); in ext4_fc_replay_inode()
1432 inode_len = ext4_fc_tag_len(tl) - sizeof(struct ext4_fc_inode); in ext4_fc_replay_inode()
1500 static int ext4_fc_replay_create(struct super_block *sb, struct ext4_fc_tl *tl) in ext4_fc_replay_create() argument
1507 tl_to_darg(&darg, tl); in ext4_fc_replay_create()
1586 struct ext4_fc_tl *tl) in ext4_fc_replay_add_range() argument
1598 fc_add_ex = (struct ext4_fc_add_range *)ext4_fc_tag_val(tl); in ext4_fc_replay_add_range()
1715 ext4_fc_replay_del_range(struct super_block *sb, struct ext4_fc_tl *tl) in ext4_fc_replay_del_range() argument
1723 lrange = (struct ext4_fc_del_range *)ext4_fc_tag_val(tl); in ext4_fc_replay_del_range()
1905 struct ext4_fc_tl *tl; in ext4_fc_replay_scan() local
1935 fc_for_each_tl(start, end, tl) { in ext4_fc_replay_scan()
1937 tag2str(le16_to_cpu(tl->fc_tag)), bh->b_blocknr); in ext4_fc_replay_scan()
1938 switch (le16_to_cpu(tl->fc_tag)) { in ext4_fc_replay_scan()
1940 ext = (struct ext4_fc_add_range *)ext4_fc_tag_val(tl); in ext4_fc_replay_scan()
1957 state->fc_crc = ext4_chksum(sbi, state->fc_crc, tl, in ext4_fc_replay_scan()
1958 sizeof(*tl) + ext4_fc_tag_len(tl)); in ext4_fc_replay_scan()
1962 tail = (struct ext4_fc_tail *)ext4_fc_tag_val(tl); in ext4_fc_replay_scan()
1963 state->fc_crc = ext4_chksum(sbi, state->fc_crc, tl, in ext4_fc_replay_scan()
1964 sizeof(*tl) + in ext4_fc_replay_scan()
1979 head = (struct ext4_fc_head *)ext4_fc_tag_val(tl); in ext4_fc_replay_scan()
1990 state->fc_crc = ext4_chksum(sbi, state->fc_crc, tl, in ext4_fc_replay_scan()
1991 sizeof(*tl) + ext4_fc_tag_len(tl)); in ext4_fc_replay_scan()
2015 struct ext4_fc_tl *tl; in ext4_fc_replay() local
2046 fc_for_each_tl(start, end, tl) { in ext4_fc_replay()
2053 tag2str(le16_to_cpu(tl->fc_tag))); in ext4_fc_replay()
2055 switch (le16_to_cpu(tl->fc_tag)) { in ext4_fc_replay()
2057 ret = ext4_fc_replay_link(sb, tl); in ext4_fc_replay()
2060 ret = ext4_fc_replay_unlink(sb, tl); in ext4_fc_replay()
2063 ret = ext4_fc_replay_add_range(sb, tl); in ext4_fc_replay()
2066 ret = ext4_fc_replay_create(sb, tl); in ext4_fc_replay()
2069 ret = ext4_fc_replay_del_range(sb, tl); in ext4_fc_replay()
2072 ret = ext4_fc_replay_inode(sb, tl); in ext4_fc_replay()
2076 ext4_fc_tag_len(tl), 0); in ext4_fc_replay()
2080 ext4_fc_tag_len(tl), 0); in ext4_fc_replay()
2081 tail = (struct ext4_fc_tail *)ext4_fc_tag_val(tl); in ext4_fc_replay()
2087 trace_ext4_fc_replay(sb, le16_to_cpu(tl->fc_tag), 0, in ext4_fc_replay()
2088 ext4_fc_tag_len(tl), 0); in ext4_fc_replay()