Searched refs:disk_link (Results 1 – 5 of 5) sorted by relevance
/linux-6.1.9/fs/crypto/ |
D | hooks.c | 195 struct fscrypt_str *disk_link) in fscrypt_prepare_symlink() argument 207 disk_link->name = (unsigned char *)target; in fscrypt_prepare_symlink() 208 disk_link->len = len + 1; in fscrypt_prepare_symlink() 209 if (disk_link->len > max_len) in fscrypt_prepare_symlink() 229 &disk_link->len)) in fscrypt_prepare_symlink() 231 disk_link->len += sizeof(struct fscrypt_symlink_data); in fscrypt_prepare_symlink() 233 disk_link->name = NULL; in fscrypt_prepare_symlink() 239 unsigned int len, struct fscrypt_str *disk_link) in __fscrypt_encrypt_symlink() argument 254 if (disk_link->name) { in __fscrypt_encrypt_symlink() 256 sd = (struct fscrypt_symlink_data *)disk_link->name; in __fscrypt_encrypt_symlink() [all …]
|
/linux-6.1.9/include/linux/ |
D | fscrypt.h | 370 struct fscrypt_str *disk_link); 372 unsigned int len, struct fscrypt_str *disk_link); 708 struct fscrypt_str *disk_link) in fscrypt_prepare_symlink() argument 712 disk_link->name = (unsigned char *)target; in fscrypt_prepare_symlink() 713 disk_link->len = len + 1; in fscrypt_prepare_symlink() 714 if (disk_link->len > max_len) in fscrypt_prepare_symlink() 722 struct fscrypt_str *disk_link) in __fscrypt_encrypt_symlink() argument 1018 struct fscrypt_str *disk_link) in fscrypt_encrypt_symlink() argument 1021 return __fscrypt_encrypt_symlink(inode, target, len, disk_link); in fscrypt_encrypt_symlink()
|
/linux-6.1.9/fs/ubifs/ |
D | dir.c | 1152 struct fscrypt_str disk_link; in ubifs_symlink() local 1162 &disk_link); in ubifs_symlink() 1187 ui->data = kmalloc(disk_link.len, GFP_NOFS); in ubifs_symlink() 1194 disk_link.name = ui->data; /* encrypt directly into ui->data */ in ubifs_symlink() 1195 err = fscrypt_encrypt_symlink(inode, symname, len, &disk_link); in ubifs_symlink() 1199 memcpy(ui->data, disk_link.name, disk_link.len); in ubifs_symlink() 1208 ui->data_len = disk_link.len - 1; in ubifs_symlink() 1209 inode->i_size = ubifs_inode(inode)->ui_size = disk_link.len - 1; in ubifs_symlink()
|
/linux-6.1.9/fs/f2fs/ |
D | namei.c | 672 struct fscrypt_str disk_link; in f2fs_symlink() local 681 &disk_link); in f2fs_symlink() 707 err = fscrypt_encrypt_symlink(inode, symname, len, &disk_link); in f2fs_symlink() 711 err = page_symlink(inode, disk_link.name, disk_link.len); in f2fs_symlink() 727 disk_link.len - 1); in f2fs_symlink() 741 if (disk_link.name != (unsigned char *)symname) in f2fs_symlink() 742 kfree(disk_link.name); in f2fs_symlink()
|
/linux-6.1.9/fs/ext4/ |
D | namei.c | 3317 struct fscrypt_str *disk_link) in ext4_init_symlink_block() argument 3333 memcpy(kaddr, disk_link->name, disk_link->len); in ext4_init_symlink_block() 3334 inode->i_size = disk_link->len - 1; in ext4_init_symlink_block() 3349 struct fscrypt_str disk_link; in ext4_symlink() local 3356 &disk_link); in ext4_symlink() 3385 err = fscrypt_encrypt_symlink(inode, symname, len, &disk_link); in ext4_symlink() 3390 if ((disk_link.len > EXT4_N_BLOCKS * 4)) { in ext4_symlink() 3398 if ((disk_link.len > EXT4_N_BLOCKS * 4)) { in ext4_symlink() 3400 err = ext4_init_symlink_block(handle, inode, &disk_link); in ext4_symlink() 3406 memcpy((char *)&EXT4_I(inode)->i_data, disk_link.name, in ext4_symlink() [all …]
|