Searched refs:cf_name (Results 1 – 8 of 8) sorted by relevance
/openbmc/linux/fs/smb/server/ |
H A D | misc.c | 232 char *cf_name; in ksmbd_casefold_sharename() local 235 cf_name = kzalloc(KSMBD_REQ_MAX_SHARE_NAME, GFP_KERNEL); in ksmbd_casefold_sharename() 236 if (!cf_name) in ksmbd_casefold_sharename() 242 cf_len = utf8_casefold(um, &q_name, cf_name, in ksmbd_casefold_sharename() 247 return cf_name; in ksmbd_casefold_sharename() 251 cf_len = strscpy(cf_name, name, KSMBD_REQ_MAX_SHARE_NAME); in ksmbd_casefold_sharename() 253 kfree(cf_name); in ksmbd_casefold_sharename() 257 for (; *cf_name; ++cf_name) in ksmbd_casefold_sharename() 258 *cf_name = isascii(*cf_name) ? tolower(*cf_name) : *cf_name; in ksmbd_casefold_sharename() 259 return cf_name - cf_len; in ksmbd_casefold_sharename()
|
/openbmc/linux/fs/f2fs/ |
H A D | hash.c | 120 if (fname->cf_name.name) { in f2fs_hash_filename() 121 name = fname->cf_name.name; in f2fs_hash_filename() 122 len = fname->cf_name.len; in f2fs_hash_filename()
|
H A D | dir.c | 54 fname->cf_name.name = f2fs_kmem_cache_alloc(f2fs_cf_name_slab, in f2fs_init_casefolded_name() 56 if (!fname->cf_name.name) in f2fs_init_casefolded_name() 58 fname->cf_name.len = utf8_casefold(sb->s_encoding, in f2fs_init_casefolded_name() 60 fname->cf_name.name, in f2fs_init_casefolded_name() 62 if ((int)fname->cf_name.len <= 0) { in f2fs_init_casefolded_name() 63 kmem_cache_free(f2fs_cf_name_slab, fname->cf_name.name); in f2fs_init_casefolded_name() 64 fname->cf_name.name = NULL; in f2fs_init_casefolded_name() 146 if (fname->cf_name.name) { in f2fs_free_filename() 147 kmem_cache_free(f2fs_cf_name_slab, fname->cf_name.name); in f2fs_free_filename() 148 fname->cf_name.name = NULL; in f2fs_free_filename() [all …]
|
H A D | recovery.c | 158 kmem_cache_free(f2fs_cf_name_slab, fname->cf_name.name); in init_recovered_filename() 159 fname->cf_name.name = NULL; in init_recovered_filename()
|
H A D | f2fs.h | 525 struct fscrypt_str cf_name; member
|
/openbmc/linux/fs/ext4/ |
H A D | crypto.c | 74 kfree(fname->cf_name.name); in ext4_fname_free_filename() 75 fname->cf_name.name = NULL; in ext4_fname_free_filename()
|
H A D | namei.c | 1449 struct fscrypt_str *cf_name = &name->cf_name; in ext4_fname_setup_ci_filename() local 1455 cf_name->name = NULL; in ext4_fname_setup_ci_filename() 1459 cf_name->name = kmalloc(EXT4_NAME_LEN, GFP_NOFS); in ext4_fname_setup_ci_filename() 1460 if (!cf_name->name) in ext4_fname_setup_ci_filename() 1464 iname, cf_name->name, in ext4_fname_setup_ci_filename() 1467 kfree(cf_name->name); in ext4_fname_setup_ci_filename() 1468 cf_name->name = NULL; in ext4_fname_setup_ci_filename() 1470 cf_name->len = (unsigned) len; in ext4_fname_setup_ci_filename() 1476 if (cf_name->name) in ext4_fname_setup_ci_filename() 1477 return ext4fs_dirhash(dir, cf_name->name, cf_name->len, hinfo); in ext4_fname_setup_ci_filename() [all …]
|
H A D | ext4.h | 2500 struct fscrypt_str cf_name; member 2780 kfree(fname->cf_name.name); in ext4_fname_free_filename() 2781 fname->cf_name.name = NULL; in ext4_fname_free_filename()
|