/fs/f2fs/ |
D | dir.c | 47 struct f2fs_filename *fname) in f2fs_init_casefolded_name() argument 53 !is_dot_dotdot(fname->usr_fname->name, fname->usr_fname->len)) { in f2fs_init_casefolded_name() 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() 59 fname->usr_fname, 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() [all …]
|
D | hash.c | 96 void f2fs_hash_filename(const struct inode *dir, struct f2fs_filename *fname) in f2fs_hash_filename() argument 98 const u8 *name = fname->disk_name.name; in f2fs_hash_filename() 99 size_t len = fname->disk_name.len; in f2fs_hash_filename() 104 fname->hash = 0; in f2fs_hash_filename() 119 WARN_ON_ONCE(!fname->usr_fname->name); in f2fs_hash_filename() 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() 124 name = fname->usr_fname->name; in f2fs_hash_filename() 125 len = fname->usr_fname->len; in f2fs_hash_filename() [all …]
|
D | recovery.c | 122 struct f2fs_filename *fname, in init_recovered_filename() argument 127 memset(fname, 0, sizeof(*fname)); in init_recovered_filename() 128 fname->disk_name.len = le32_to_cpu(raw_inode->i_namelen); in init_recovered_filename() 129 fname->disk_name.name = raw_inode->i_name; in init_recovered_filename() 131 if (WARN_ON(fname->disk_name.len > F2FS_NAME_LEN)) in init_recovered_filename() 135 usr_fname->name = fname->disk_name.name; in init_recovered_filename() 136 usr_fname->len = fname->disk_name.len; in init_recovered_filename() 137 fname->usr_fname = usr_fname; in init_recovered_filename() 146 if (fname->disk_name.len + sizeof(f2fs_hash_t) > F2FS_NAME_LEN) in init_recovered_filename() 148 fname->hash = get_unaligned((f2fs_hash_t *) in init_recovered_filename() [all …]
|
D | inline.c | 335 const struct f2fs_filename *fname, in f2fs_find_in_inline_dir() argument 353 de = f2fs_find_target_dentry(&d, fname, NULL); in f2fs_find_in_inline_dir() 474 struct f2fs_filename fname; in f2fs_add_inline_entries() local 494 memset(&fname, 0, sizeof(fname)); in f2fs_add_inline_entries() 495 fname.disk_name.name = d.filename[bit_pos]; in f2fs_add_inline_entries() 496 fname.disk_name.len = le16_to_cpu(de->name_len); in f2fs_add_inline_entries() 497 fname.hash = de->hash_code; in f2fs_add_inline_entries() 502 err = f2fs_add_regular_entry(dir, &fname, NULL, ino, fake_mode); in f2fs_add_inline_entries() 579 struct f2fs_filename fname; in f2fs_try_convert_inline_dir() local 588 err = f2fs_setup_filename(dir, &dentry->d_name, 0, &fname); in f2fs_try_convert_inline_dir() [all …]
|
/fs/ext4/ |
D | dir.c | 404 struct fname { struct 408 struct fname *next; argument 421 struct fname *fname, *next; in free_rb_tree_fname() argument 423 rbtree_postorder_for_each_entry_safe(fname, next, root, rb_hash) in free_rb_tree_fname() 424 while (fname) { in free_rb_tree_fname() 425 struct fname *old = fname; in free_rb_tree_fname() 426 fname = fname->next; in free_rb_tree_fname() 466 struct fname *fname, *new_fn; in ext4_htree_store_dirent() local 474 len = sizeof(struct fname) + ent_name->len + 1; in ext4_htree_store_dirent() 487 fname = rb_entry(parent, struct fname, rb_hash); in ext4_htree_store_dirent() [all …]
|
D | namei.c | 303 static struct dx_frame *dx_probe(struct ext4_filename *fname, 324 struct ext4_filename *fname, 326 static int ext4_dx_add_entry(handle_t *handle, struct ext4_filename *fname, 809 dx_probe(struct ext4_filename *fname, struct inode *dir, in dx_probe() argument 848 if (fname) in dx_probe() 849 hinfo = &fname->hinfo; in dx_probe() 855 if (fname && fname_name(fname) && in dx_probe() 857 int ret = ext4fs_dirhash(dir, fname_name(fname), in dx_probe() 858 fname_len(fname), hinfo); in dx_probe() 1295 struct ext4_filename *fname, in search_dirblock() argument [all …]
|
D | ext4.h | 2521 struct fname *extra_fname; 2724 struct ext4_filename *fname); 2743 struct ext4_filename *fname) in ext4_fname_setup_filename() argument 2752 ext4_fname_from_fscrypt_name(fname, &name); in ext4_fname_setup_filename() 2755 err = ext4_fname_setup_ci_filename(dir, iname, fname); in ext4_fname_setup_filename() 2762 struct ext4_filename *fname) in ext4_fname_prepare_lookup() argument 2771 ext4_fname_from_fscrypt_name(fname, &name); in ext4_fname_prepare_lookup() 2774 err = ext4_fname_setup_ci_filename(dir, &dentry->d_name, fname); in ext4_fname_prepare_lookup() 2779 static inline void ext4_fname_free_filename(struct ext4_filename *fname) in ext4_fname_free_filename() argument 2783 name.crypto_buf = fname->crypto_buf; in ext4_fname_free_filename() [all …]
|
D | inline.c | 1041 struct ext4_filename *fname, in ext4_add_dirent_to_inline() argument 1051 inline_size, fname, &de); in ext4_add_dirent_to_inline() 1060 ext4_insert_dentry(dir, inode, de, inline_size, fname); in ext4_add_dirent_to_inline() 1296 int ext4_try_add_inline_entry(handle_t *handle, struct ext4_filename *fname, in ext4_try_add_inline_entry() argument 1315 ret = ext4_add_dirent_to_inline(handle, fname, dir, inode, &iloc, in ext4_try_add_inline_entry() 1336 ret = ext4_add_dirent_to_inline(handle, fname, dir, in ext4_try_add_inline_entry() 1666 struct ext4_filename *fname, in ext4_find_inline_entry() argument 1688 dir, fname, 0, res_dir); in ext4_find_inline_entry() 1701 dir, fname, 0, res_dir); in ext4_find_inline_entry()
|
/fs/crypto/ |
D | fname.c | 445 int lookup, struct fscrypt_name *fname) in fscrypt_setup_filename() argument 450 memset(fname, 0, sizeof(struct fscrypt_name)); in fscrypt_setup_filename() 451 fname->usr_fname = iname; in fscrypt_setup_filename() 454 fname->disk_name.name = (unsigned char *)iname->name; in fscrypt_setup_filename() 455 fname->disk_name.len = iname->len; in fscrypt_setup_filename() 464 &fname->crypto_buf.len)) in fscrypt_setup_filename() 466 fname->crypto_buf.name = kmalloc(fname->crypto_buf.len, in fscrypt_setup_filename() 468 if (!fname->crypto_buf.name) in fscrypt_setup_filename() 471 ret = fscrypt_fname_encrypt(dir, iname, fname->crypto_buf.name, in fscrypt_setup_filename() 472 fname->crypto_buf.len); in fscrypt_setup_filename() [all …]
|
D | hooks.c | 98 struct fscrypt_name *fname) in __fscrypt_prepare_lookup() argument 100 int err = fscrypt_setup_filename(dir, &dentry->d_name, 1, fname); in __fscrypt_prepare_lookup() 105 if (fname->is_nokey_name) { in __fscrypt_prepare_lookup()
|
D | Makefile | 7 fname.o \
|
/fs/ntfs3/ |
D | namei.c | 24 struct ATTR_FILE_NAME *fname = (struct ATTR_FILE_NAME *)(e + 1); in fill_name_de() local 27 e->ref.high = fname->home.high = 0; in fill_name_de() 32 __le16 *uname = fname->name; in fill_name_de() 38 memcpy(fname->name, uni->name, uni->len * sizeof(u16)); in fill_name_de() 40 fname->name_len = uni->len; in fill_name_de() 45 (struct cpu_str *)&fname->name_len, in fill_name_de() 51 fname->type = FILE_NAME_POSIX; in fill_name_de() 52 data_size = fname_full_size(fname); in fill_name_de() 355 struct ATTR_FILE_NAME *fname; in ntfs3_get_parent() local 359 fname = resident_data_ex(attr, SIZEOF_ATTRIBUTE_FILENAME); in ntfs3_get_parent() [all …]
|
D | dir.c | 279 const struct ATTR_FILE_NAME *fname; in ntfs_filldir() local 284 fname = Add2Ptr(e, sizeof(struct NTFS_DE)); in ntfs_filldir() 286 if (fname->type == FILE_NAME_DOS) in ntfs_filldir() 289 if (!mi_is_ref(&ni->mi, &fname->home)) in ntfs_filldir() 301 if (sbi->options->nohidden && (fname->dup.fa & FILE_ATTRIBUTE_HIDDEN)) in ntfs_filldir() 304 name_len = ntfs_utf16_to_nls(sbi, fname->name, fname->name_len, name, in ntfs_filldir() 319 dt_type = (fname->dup.fa & FILE_ATTRIBUTE_DIRECTORY) ? DT_DIR : DT_REG; in ntfs_filldir() 329 if ((fname->dup.fa & FILE_ATTRIBUTE_REPARSE_POINT) && in ntfs_filldir() 516 const struct ATTR_FILE_NAME *fname; in ntfs_dir_count() local 545 fname = de_get_fname(e); in ntfs_dir_count() [all …]
|
D | frecord.c | 1605 struct ATTR_FILE_NAME *fname; in ni_fname_name() local 1615 fname = resident_data_ex(attr, SIZEOF_ATTRIBUTE_FILENAME); in ni_fname_name() 1616 if (!fname) in ni_fname_name() 1619 if (home_dir && memcmp(home_dir, &fname->home, sizeof(*home_dir))) in ni_fname_name() 1625 if (uni->len != fname->name_len) in ni_fname_name() 1628 if (ntfs_cmp_names_cpu(uni, (struct le_str *)&fname->name_len, NULL, in ni_fname_name() 1632 return fname; in ni_fname_name() 1645 struct ATTR_FILE_NAME *fname; in ni_fname_type() local 1658 fname = resident_data_ex(attr, SIZEOF_ATTRIBUTE_FILENAME); in ni_fname_type() 1659 if (fname && name_type == fname->type) in ni_fname_type() [all …]
|
D | inode.c | 41 const struct ATTR_FILE_NAME *fname = NULL; in ntfs_read_mft() local 193 fname = Add2Ptr(attr, roff); in ntfs_read_mft() 194 if (fname->type == FILE_NAME_DOS) in ntfs_read_mft() 198 if (name && name->len == fname->name_len && in ntfs_read_mft() 199 !ntfs_cmp_names_cpu(name, (struct le_str *)&fname->name_len, in ntfs_read_mft() 454 } else if (fname && fname->home.low == cpu_to_le32(MFT_REC_EXTEND) && in ntfs_read_mft() 455 fname->home.seq == cpu_to_le16(MFT_REC_EXTEND)) { in ntfs_read_mft() 1213 struct ATTR_FILE_NAME *fname; in ntfs_create_inode() local 1373 fname = (struct ATTR_FILE_NAME *)(new_de + 1); in ntfs_create_inode() 1374 mi_get_ref(&dir_ni->mi, &fname->home); in ntfs_create_inode() [all …]
|
D | ntfs.h | 579 static inline struct ATTRIB *attr_from_name(struct ATTR_FILE_NAME *fname) in attr_from_name() argument 581 return (struct ATTRIB *)((char *)fname - SIZEOF_RESIDENT); in attr_from_name() 584 static inline u16 fname_full_size(const struct ATTR_FILE_NAME *fname) in fname_full_size() argument 588 fname->name_len * sizeof(short); in fname_full_size()
|
D | record.c | 513 struct ATTR_FILE_NAME *fname = in mi_remove_attr() local 518 if (fname && fname->type == FILE_NAME_DOS) { in mi_remove_attr()
|
/fs/udf/ |
D | dir.c | 49 unsigned char *fname = NULL, *copy_name = NULL; in udf_readdir() local 87 fname = kmalloc(UDF_NAME_LEN, GFP_NOFS); in udf_readdir() 88 if (!fname) { in udf_readdir() 203 flen = udf_get_filename(sb, nameptr, lfi, fname, UDF_NAME_LEN); in udf_readdir() 209 if (!dir_emit(ctx, fname, flen, iblock, DT_UNKNOWN)) in udf_readdir() 223 kfree(fname); in udf_readdir()
|
/fs/ubifs/ |
D | debug.c | 2822 const char *fname; in dbg_debugfs_init_fs() local 2832 fname = d->dfs_dir_name; in dbg_debugfs_init_fs() 2833 d->dfs_dir = debugfs_create_dir(fname, dfs_rootdir); in dbg_debugfs_init_fs() 2835 fname = "dump_lprops"; in dbg_debugfs_init_fs() 2836 d->dfs_dump_lprops = debugfs_create_file(fname, S_IWUSR, d->dfs_dir, c, in dbg_debugfs_init_fs() 2839 fname = "dump_budg"; in dbg_debugfs_init_fs() 2840 d->dfs_dump_budg = debugfs_create_file(fname, S_IWUSR, d->dfs_dir, c, in dbg_debugfs_init_fs() 2843 fname = "dump_tnc"; in dbg_debugfs_init_fs() 2844 d->dfs_dump_tnc = debugfs_create_file(fname, S_IWUSR, d->dfs_dir, c, in dbg_debugfs_init_fs() 2847 fname = "chk_general"; in dbg_debugfs_init_fs() [all …]
|
/fs/gfs2/ |
D | dir.h | 59 static inline void gfs2_str2qstr(struct qstr *name, const char *fname) in gfs2_str2qstr() argument 61 name->name = fname; in gfs2_str2qstr() 62 name->len = strlen(fname); in gfs2_str2qstr()
|
/fs/nfsd/ |
D | vfs.c | 1230 char *fname, int flen, struct iattr *iap, in nfsd_create_locked() argument 1342 char *fname, int flen, struct iattr *iap, in nfsd_create() argument 1349 if (isdotent(fname, flen)) in nfsd_create() 1363 dchild = lookup_one_len(fname, dentry, flen); in nfsd_create() 1375 return nfsd_create_locked(rqstp, fhp, fname, flen, iap, type, in nfsd_create() 1386 char *fname, int flen, struct iattr *iap, in do_nfsd_create() argument 1400 if (isdotent(fname, flen)) in do_nfsd_create() 1420 dchild = lookup_one_len(fname, dentry, flen); in do_nfsd_create() 1591 char *fname, int flen, in nfsd_symlink() argument 1603 if (isdotent(fname, flen)) in nfsd_symlink() [all …]
|
D | xdr.h | 48 char * fname; member 64 char * fname; member
|
D | xdr3.h | 66 char * fname; member 82 char * fname; member
|
D | nfsproc.c | 440 SVCFH_fmt(&argp->ffh), argp->flen, argp->fname); in nfsd_proc_rename() 444 resp->status = nfsd_rename(rqstp, &argp->ffh, argp->fname, argp->flen, in nfsd_proc_rename() 492 SVCFH_fmt(&argp->ffh), argp->flen, argp->fname, in nfsd_proc_symlink() 496 resp->status = nfsd_symlink(rqstp, &argp->ffh, argp->fname, argp->flen, in nfsd_proc_symlink()
|
/fs/xfs/ |
D | xfs_fsops.c | 515 char *fname, in xfs_do_force_shutdown() argument 540 trace_xfs_force_shutdown(mp, tag, flags, fname, lnnum); in xfs_do_force_shutdown() 544 why, flags, __return_address, fname, lnnum); in xfs_do_force_shutdown()
|