Searched refs:cf_name (Results 1 – 7 of 7) sorted by relevance
/fs/ksmbd/ |
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()
|
/fs/f2fs/ |
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()
|
D | dir.c | 87 fname->cf_name.name = f2fs_kmem_cache_alloc(f2fs_cf_name_slab, in f2fs_init_casefolded_name() 89 if (!fname->cf_name.name) in f2fs_init_casefolded_name() 91 fname->cf_name.len = utf8_casefold(sb->s_encoding, in f2fs_init_casefolded_name() 93 fname->cf_name.name, in f2fs_init_casefolded_name() 95 if ((int)fname->cf_name.len <= 0) { in f2fs_init_casefolded_name() 96 kmem_cache_free(f2fs_cf_name_slab, fname->cf_name.name); in f2fs_init_casefolded_name() 97 fname->cf_name.name = NULL; in f2fs_init_casefolded_name() 179 if (fname->cf_name.name) { in f2fs_free_filename() 180 kmem_cache_free(f2fs_cf_name_slab, fname->cf_name.name); in f2fs_free_filename() 181 fname->cf_name.name = NULL; in f2fs_free_filename() [all …]
|
D | recovery.c | 157 kmem_cache_free(f2fs_cf_name_slab, fname->cf_name.name); in init_recovered_filename() 158 fname->cf_name.name = NULL; in init_recovered_filename()
|
D | f2fs.h | 521 struct fscrypt_str cf_name; member
|
/fs/ext4/ |
D | namei.c | 1448 struct fscrypt_str *cf_name = &name->cf_name; in ext4_fname_setup_ci_filename() local 1454 cf_name->name = NULL; in ext4_fname_setup_ci_filename() 1458 cf_name->name = kmalloc(EXT4_NAME_LEN, GFP_NOFS); in ext4_fname_setup_ci_filename() 1459 if (!cf_name->name) in ext4_fname_setup_ci_filename() 1463 iname, cf_name->name, in ext4_fname_setup_ci_filename() 1466 kfree(cf_name->name); in ext4_fname_setup_ci_filename() 1467 cf_name->name = NULL; in ext4_fname_setup_ci_filename() 1469 cf_name->len = (unsigned) len; in ext4_fname_setup_ci_filename() 1475 if (cf_name->name) in ext4_fname_setup_ci_filename() 1476 return ext4fs_dirhash(dir, cf_name->name, cf_name->len, hinfo); in ext4_fname_setup_ci_filename() [all …]
|
D | ext4.h | 2484 struct fscrypt_str cf_name; member 2791 kfree(fname->cf_name.name); in ext4_fname_free_filename() 2792 fname->cf_name.name = NULL; in ext4_fname_free_filename() 2823 kfree(fname->cf_name.name); in ext4_fname_free_filename() 2824 fname->cf_name.name = NULL; in ext4_fname_free_filename()
|