Lines Matching defs:disk_link
206 * @disk_link: (out) the on-disk symlink target being prepared
209 * stores it in @disk_link->len, and validates it against @max_len. An
212 * Additionally, @disk_link->name is set to @target if the symlink will be
225 struct fscrypt_str *disk_link)
237 disk_link->name = (unsigned char *)target;
238 disk_link->len = len + 1;
239 if (disk_link->len > max_len)
259 &disk_link->len))
261 disk_link->len += sizeof(struct fscrypt_symlink_data) + 1;
263 disk_link->name = NULL;
269 unsigned int len, struct fscrypt_str *disk_link)
284 if (disk_link->name) {
286 sd = (struct fscrypt_symlink_data *)disk_link->name;
288 sd = kmalloc(disk_link->len, GFP_NOFS);
292 ciphertext_len = disk_link->len - sizeof(*sd) - 1;
313 if (!disk_link->name)
314 disk_link->name = (unsigned char *)sd;
318 if (!disk_link->name)