Searched refs:disk_link (Results 1 – 5 of 5) sorted by relevance
/Linux-v5.10/fs/crypto/ |
D | hooks.c | 193 struct fscrypt_str *disk_link) in fscrypt_prepare_symlink() argument 205 disk_link->name = (unsigned char *)target; in fscrypt_prepare_symlink() 206 disk_link->len = len + 1; in fscrypt_prepare_symlink() 207 if (disk_link->len > max_len) in fscrypt_prepare_symlink() 227 &disk_link->len)) in fscrypt_prepare_symlink() 229 disk_link->len += sizeof(struct fscrypt_symlink_data); in fscrypt_prepare_symlink() 231 disk_link->name = NULL; in fscrypt_prepare_symlink() 237 unsigned int len, struct fscrypt_str *disk_link) in __fscrypt_encrypt_symlink() argument 252 if (disk_link->name) { in __fscrypt_encrypt_symlink() 254 sd = (struct fscrypt_symlink_data *)disk_link->name; in __fscrypt_encrypt_symlink() [all …]
|
/Linux-v5.10/include/linux/ |
D | fscrypt.h | 220 struct fscrypt_str *disk_link); 222 unsigned int len, struct fscrypt_str *disk_link); 517 struct fscrypt_str *disk_link) in fscrypt_prepare_symlink() argument 521 disk_link->name = (unsigned char *)target; in fscrypt_prepare_symlink() 522 disk_link->len = len + 1; in fscrypt_prepare_symlink() 523 if (disk_link->len > max_len) in fscrypt_prepare_symlink() 531 struct fscrypt_str *disk_link) in __fscrypt_encrypt_symlink() argument 809 struct fscrypt_str *disk_link) in fscrypt_encrypt_symlink() argument 812 return __fscrypt_encrypt_symlink(inode, target, len, disk_link); in fscrypt_encrypt_symlink()
|
/Linux-v5.10/fs/f2fs/ |
D | namei.c | 645 struct fscrypt_str disk_link; in f2fs_symlink() local 654 &disk_link); in f2fs_symlink() 680 err = fscrypt_encrypt_symlink(inode, symname, len, &disk_link); in f2fs_symlink() 684 err = page_symlink(inode, disk_link.name, disk_link.len); in f2fs_symlink() 700 disk_link.len - 1); in f2fs_symlink() 714 if (disk_link.name != (unsigned char *)symname) in f2fs_symlink() 715 kfree(disk_link.name); in f2fs_symlink()
|
/Linux-v5.10/fs/ubifs/ |
D | dir.c | 1103 struct fscrypt_str disk_link; in ubifs_symlink() local 1113 &disk_link); in ubifs_symlink() 1138 ui->data = kmalloc(disk_link.len, GFP_NOFS); in ubifs_symlink() 1145 disk_link.name = ui->data; /* encrypt directly into ui->data */ in ubifs_symlink() 1146 err = fscrypt_encrypt_symlink(inode, symname, len, &disk_link); in ubifs_symlink() 1150 memcpy(ui->data, disk_link.name, disk_link.len); in ubifs_symlink() 1159 ui->data_len = disk_link.len - 1; in ubifs_symlink() 1160 inode->i_size = ubifs_inode(inode)->ui_size = disk_link.len - 1; in ubifs_symlink()
|
/Linux-v5.10/fs/ext4/ |
D | namei.c | 3302 struct fscrypt_str disk_link; in ext4_symlink() local 3308 &disk_link); in ext4_symlink() 3316 if ((disk_link.len > EXT4_N_BLOCKS * 4)) { in ext4_symlink() 3347 err = fscrypt_encrypt_symlink(inode, symname, len, &disk_link); in ext4_symlink() 3353 if ((disk_link.len > EXT4_N_BLOCKS * 4)) { in ext4_symlink() 3375 err = __page_symlink(inode, disk_link.name, disk_link.len, 1); in ext4_symlink() 3401 memcpy((char *)&EXT4_I(inode)->i_data, disk_link.name, in ext4_symlink() 3402 disk_link.len); in ext4_symlink() 3403 inode->i_size = disk_link.len - 1; in ext4_symlink() 3420 if (disk_link.name != (unsigned char *)symname) in ext4_symlink() [all …]
|