Searched refs:tl (Results 1 – 5 of 5) sorted by relevance
/fs/cifs/ |
D | dfs_cache.h | 52 dfs_cache_get_next_tgt(struct dfs_cache_tgt_list *tl, in dfs_cache_get_next_tgt() argument 55 if (!tl || list_empty(&tl->tl_list) || !it || in dfs_cache_get_next_tgt() 56 list_is_last(&it->it_list, &tl->tl_list)) in dfs_cache_get_next_tgt() 62 dfs_cache_get_tgt_iterator(struct dfs_cache_tgt_list *tl) in dfs_cache_get_tgt_iterator() argument 64 if (!tl) in dfs_cache_get_tgt_iterator() 66 return list_first_entry_or_null(&tl->tl_list, in dfs_cache_get_tgt_iterator() 71 static inline void dfs_cache_free_tgts(struct dfs_cache_tgt_list *tl) in dfs_cache_free_tgts() argument 75 if (!tl || list_empty(&tl->tl_list)) in dfs_cache_free_tgts() 77 list_for_each_entry_safe(it, nit, &tl->tl_list, it_list) { in dfs_cache_free_tgts() 82 tl->tl_numtgts = 0; in dfs_cache_free_tgts() [all …]
|
D | dfs_cache.c | 882 static int get_targets(struct cache_entry *ce, struct dfs_cache_tgt_list *tl) in get_targets() argument 885 struct list_head *head = &tl->tl_list; in get_targets() 889 memset(tl, 0, sizeof(*tl)); in get_targets() 913 tl->tl_numtgts = ce->numtgts; in get_targets() 1347 static void mark_for_reconnect_if_needed(struct cifs_tcon *tcon, struct dfs_cache_tgt_list *tl, in mark_for_reconnect_if_needed() argument 1353 for (it = dfs_cache_get_tgt_iterator(tl); it; it = dfs_cache_get_next_tgt(tl, it)) { in mark_for_reconnect_if_needed() 1379 struct dfs_cache_tgt_list tl = DFS_CACHE_TGT_LIST_INIT(tl); in __refresh_tcon() local 1393 rc = get_targets(ce, &tl); in __refresh_tcon() 1420 mark_for_reconnect_if_needed(tcon, &tl, refs, numrefs); in __refresh_tcon() 1424 dfs_cache_free_tgts(&tl); in __refresh_tcon()
|
D | connect.c | 351 static int reconnect_target_unlocked(struct TCP_Server_Info *server, struct dfs_cache_tgt_list *tl, in reconnect_target_unlocked() argument 360 tit = dfs_cache_get_tgt_iterator(tl); in reconnect_target_unlocked() 365 for (; tit; tit = dfs_cache_get_next_tgt(tl, tit)) { in reconnect_target_unlocked() 379 struct dfs_cache_tgt_list tl = DFS_CACHE_TGT_LIST_INIT(tl); in reconnect_dfs_server() local 391 if (!dfs_cache_noreq_find(refpath, NULL, &tl)) in reconnect_dfs_server() 392 num_targets = dfs_cache_get_nr_tgts(&tl); in reconnect_dfs_server() 405 rc = reconnect_target_unlocked(server, &tl, &target_hint); in reconnect_dfs_server() 431 dfs_cache_free_tgts(&tl); in reconnect_dfs_server() 3453 struct dfs_cache_tgt_list tl = DFS_CACHE_TGT_LIST_INIT(tl); in __follow_dfs_link() local 3471 cifs_remap(cifs_sb), mnt_ctx->leaf_fullpath + 1, NULL, &tl); in __follow_dfs_link() [all …]
|
/fs/ext4/ |
D | fast_commit.c | 641 struct ext4_fc_tl tl; in ext4_fc_reserve_space() local 679 tl.fc_tag = cpu_to_le16(EXT4_FC_TAG_PAD); in ext4_fc_reserve_space() 680 tl.fc_len = cpu_to_le16(remaining); in ext4_fc_reserve_space() 681 ext4_fc_memcpy(sb, dst, &tl, EXT4_FC_TAG_BASE_LEN, crc); in ext4_fc_reserve_space() 705 struct ext4_fc_tl tl; in ext4_fc_write_tail() local 720 tl.fc_tag = cpu_to_le16(EXT4_FC_TAG_TAIL); in ext4_fc_write_tail() 721 tl.fc_len = cpu_to_le16(bsize - off + sizeof(struct ext4_fc_tail)); in ext4_fc_write_tail() 724 ext4_fc_memcpy(sb, dst, &tl, EXT4_FC_TAG_BASE_LEN, &crc); in ext4_fc_write_tail() 746 struct ext4_fc_tl tl; in ext4_fc_add_tlv() local 753 tl.fc_tag = cpu_to_le16(tag); in ext4_fc_add_tlv() [all …]
|
/fs/ocfs2/ |
D | alloc.c | 5807 struct ocfs2_truncate_log *tl; in ocfs2_truncate_log_needs_flush() local 5810 tl = &di->id2.i_dealloc; in ocfs2_truncate_log_needs_flush() 5812 mlog_bug_on_msg(le16_to_cpu(tl->tl_used) > le16_to_cpu(tl->tl_count), in ocfs2_truncate_log_needs_flush() 5815 le16_to_cpu(tl->tl_used), le16_to_cpu(tl->tl_count)); in ocfs2_truncate_log_needs_flush() 5816 return le16_to_cpu(tl->tl_used) == le16_to_cpu(tl->tl_count); in ocfs2_truncate_log_needs_flush() 5819 static int ocfs2_truncate_log_can_coalesce(struct ocfs2_truncate_log *tl, in ocfs2_truncate_log_can_coalesce() argument 5826 if (!le16_to_cpu(tl->tl_used)) in ocfs2_truncate_log_can_coalesce() 5829 tail_index = le16_to_cpu(tl->tl_used) - 1; in ocfs2_truncate_log_can_coalesce() 5830 current_tail = le32_to_cpu(tl->tl_recs[tail_index].t_start); in ocfs2_truncate_log_can_coalesce() 5831 current_tail += le32_to_cpu(tl->tl_recs[tail_index].t_clusters); in ocfs2_truncate_log_can_coalesce() [all …]
|