Lines Matching refs:psb
85 static inline void pohmelfs_insert_config_entry(struct pohmelfs_sb *psb, struct pohmelfs_config *dst)
91 list_for_each_entry(tmp, &psb->state_list, config_entry) {
96 list_add_tail(&dst->config_entry, &psb->state_list);
99 static int pohmelfs_move_config_entry(struct pohmelfs_sb *psb,
113 pohmelfs_insert_config_entry(psb, dst);
122 * run-time, where it is protected by the psb->state_lock.
124 int pohmelfs_copy_config(struct pohmelfs_sb *psb)
132 g = pohmelfs_find_config_group(psb->idx);
144 list_for_each_entry(dst, &psb->state_list, config_entry) {
146 err = pohmelfs_move_config_entry(psb, dst, c);
164 pohmelfs_insert_config_entry(psb, dst);
166 err = pohmelfs_state_init_one(psb, dst);
181 int pohmelfs_copy_crypto(struct pohmelfs_sb *psb)
187 g = pohmelfs_find_config_group(psb->idx);
193 psb->hash_string = kstrdup(g->hash_string, GFP_KERNEL);
194 if (!psb->hash_string)
196 psb->hash_strlen = g->hash_strlen;
200 psb->cipher_string = kstrdup(g->cipher_string, GFP_KERNEL);
201 if (!psb->cipher_string)
203 psb->cipher_strlen = g->cipher_strlen;
207 psb->hash_key = kmemdup(g->hash_key, g->hash_keysize,
209 if (!psb->hash_key)
211 psb->hash_keysize = g->hash_keysize;
215 psb->cipher_key = kmemdup(g->cipher_key, g->cipher_keysize,
217 if (!psb->cipher_key)
219 psb->cipher_keysize = g->cipher_keysize;
227 kfree(psb->hash_key);
229 kfree(psb->cipher_string);
231 kfree(psb->hash_string);