/fs/f2fs/ |
D | dir.c | 76 struct f2fs_filename *fname) in f2fs_init_casefolded_name() argument 82 !is_dot_dotdot(fname->usr_fname->name, fname->usr_fname->len)) { in f2fs_init_casefolded_name() 83 fname->cf_name.name = f2fs_kmalloc(sbi, F2FS_NAME_LEN, in f2fs_init_casefolded_name() 85 if (!fname->cf_name.name) in f2fs_init_casefolded_name() 87 fname->cf_name.len = utf8_casefold(sbi->sb->s_encoding, in f2fs_init_casefolded_name() 88 fname->usr_fname, in f2fs_init_casefolded_name() 89 fname->cf_name.name, in f2fs_init_casefolded_name() 91 if ((int)fname->cf_name.len <= 0) { in f2fs_init_casefolded_name() 92 kfree(fname->cf_name.name); in f2fs_init_casefolded_name() 93 fname->cf_name.name = NULL; in f2fs_init_casefolded_name() [all …]
|
D | hash.c | 97 void f2fs_hash_filename(const struct inode *dir, struct f2fs_filename *fname) in f2fs_hash_filename() argument 99 const u8 *name = fname->disk_name.name; in f2fs_hash_filename() 100 size_t len = fname->disk_name.len; in f2fs_hash_filename() 105 fname->hash = 0; in f2fs_hash_filename() 120 WARN_ON_ONCE(!fname->usr_fname->name); in f2fs_hash_filename() 121 if (fname->cf_name.name) { in f2fs_hash_filename() 122 name = fname->cf_name.name; in f2fs_hash_filename() 123 len = fname->cf_name.len; in f2fs_hash_filename() 125 name = fname->usr_fname->name; in f2fs_hash_filename() 126 len = fname->usr_fname->len; in f2fs_hash_filename() [all …]
|
D | recovery.c | 113 struct f2fs_filename *fname, in init_recovered_filename() argument 118 memset(fname, 0, sizeof(*fname)); in init_recovered_filename() 119 fname->disk_name.len = le32_to_cpu(raw_inode->i_namelen); in init_recovered_filename() 120 fname->disk_name.name = raw_inode->i_name; in init_recovered_filename() 122 if (WARN_ON(fname->disk_name.len > F2FS_NAME_LEN)) in init_recovered_filename() 126 usr_fname->name = fname->disk_name.name; in init_recovered_filename() 127 usr_fname->len = fname->disk_name.len; in init_recovered_filename() 128 fname->usr_fname = usr_fname; in init_recovered_filename() 137 if (fname->disk_name.len + sizeof(f2fs_hash_t) > F2FS_NAME_LEN) in init_recovered_filename() 139 fname->hash = get_unaligned((f2fs_hash_t *) in init_recovered_filename() [all …]
|
D | inline.c | 329 const struct f2fs_filename *fname, in f2fs_find_in_inline_dir() argument 347 de = f2fs_find_target_dentry(&d, fname, NULL); in f2fs_find_in_inline_dir() 463 struct f2fs_filename fname; in f2fs_add_inline_entries() local 483 memset(&fname, 0, sizeof(fname)); in f2fs_add_inline_entries() 484 fname.disk_name.name = d.filename[bit_pos]; in f2fs_add_inline_entries() 485 fname.disk_name.len = le16_to_cpu(de->name_len); in f2fs_add_inline_entries() 486 fname.hash = de->hash_code; in f2fs_add_inline_entries() 491 err = f2fs_add_regular_entry(dir, &fname, NULL, ino, fake_mode); in f2fs_add_inline_entries() 568 struct f2fs_filename fname; in f2fs_try_convert_inline_dir() local 577 err = f2fs_setup_filename(dir, &dentry->d_name, 0, &fname); in f2fs_try_convert_inline_dir() [all …]
|
D | f2fs.h | 3224 struct f2fs_filename *fname); 3226 int lookup, struct f2fs_filename *fname); 3228 struct f2fs_filename *fname); 3229 void f2fs_free_filename(struct f2fs_filename *fname); 3231 const struct f2fs_filename *fname, int *max_slots); 3237 const struct f2fs_filename *fname, struct page *dpage); 3243 const struct f2fs_filename *fname, 3253 const struct f2fs_filename *fname); 3257 int f2fs_add_regular_entry(struct inode *dir, const struct f2fs_filename *fname, 3259 int f2fs_add_dentry(struct inode *dir, const struct f2fs_filename *fname, [all …]
|
D | namei.c | 485 struct f2fs_filename fname; in f2fs_lookup() local 494 err = f2fs_prepare_lookup(dir, dentry, &fname); in f2fs_lookup() 500 de = __f2fs_find_entry(dir, &fname, &page); in f2fs_lookup() 501 f2fs_free_filename(&fname); in f2fs_lookup()
|
/fs/ext4/ |
D | dir.c | 406 struct fname { struct 410 struct fname *next; argument 423 struct fname *fname, *next; in free_rb_tree_fname() argument 425 rbtree_postorder_for_each_entry_safe(fname, next, root, rb_hash) in free_rb_tree_fname() 426 while (fname) { in free_rb_tree_fname() 427 struct fname *old = fname; in free_rb_tree_fname() 428 fname = fname->next; in free_rb_tree_fname() 468 struct fname *fname, *new_fn; in ext4_htree_store_dirent() local 476 len = sizeof(struct fname) + ent_name->len + 1; in ext4_htree_store_dirent() 490 fname = rb_entry(parent, struct fname, rb_hash); in ext4_htree_store_dirent() [all …]
|
D | namei.c | 287 static struct dx_frame *dx_probe(struct ext4_filename *fname, 308 struct ext4_filename *fname, 310 static int ext4_dx_add_entry(handle_t *handle, struct ext4_filename *fname, 775 dx_probe(struct ext4_filename *fname, struct inode *dir, in dx_probe() argument 814 if (fname) in dx_probe() 815 hinfo = &fname->hinfo; in dx_probe() 821 if (fname && fname_name(fname) && in dx_probe() 823 ext4fs_dirhash(dir, fname_name(fname), fname_len(fname), hinfo); in dx_probe() 1266 struct ext4_filename *fname, in search_dirblock() argument 1271 fname, offset, res_dir); in search_dirblock() [all …]
|
D | ext4.h | 2219 struct fname *extra_fname; 2413 struct ext4_filename *fname); 2432 struct ext4_filename *fname) in ext4_fname_setup_filename() argument 2441 ext4_fname_from_fscrypt_name(fname, &name); in ext4_fname_setup_filename() 2444 err = ext4_fname_setup_ci_filename(dir, iname, fname); in ext4_fname_setup_filename() 2451 struct ext4_filename *fname) in ext4_fname_prepare_lookup() argument 2460 ext4_fname_from_fscrypt_name(fname, &name); in ext4_fname_prepare_lookup() 2463 err = ext4_fname_setup_ci_filename(dir, &dentry->d_name, fname); in ext4_fname_prepare_lookup() 2468 static inline void ext4_fname_free_filename(struct ext4_filename *fname) in ext4_fname_free_filename() argument 2472 name.crypto_buf = fname->crypto_buf; in ext4_fname_free_filename() [all …]
|
D | inline.c | 1043 struct ext4_filename *fname, in ext4_add_dirent_to_inline() argument 1053 inline_size, fname, &de); in ext4_add_dirent_to_inline() 1061 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() 1664 struct ext4_filename *fname, in ext4_find_inline_entry() argument 1686 dir, fname, 0, res_dir); in ext4_find_inline_entry() 1699 dir, fname, 0, res_dir); in ext4_find_inline_entry()
|
/fs/crypto/ |
D | fname.c | 426 int lookup, struct fscrypt_name *fname) in fscrypt_setup_filename() argument 431 memset(fname, 0, sizeof(struct fscrypt_name)); in fscrypt_setup_filename() 432 fname->usr_fname = iname; in fscrypt_setup_filename() 435 fname->disk_name.name = (unsigned char *)iname->name; in fscrypt_setup_filename() 436 fname->disk_name.len = iname->len; in fscrypt_setup_filename() 446 &fname->crypto_buf.len)) in fscrypt_setup_filename() 448 fname->crypto_buf.name = kmalloc(fname->crypto_buf.len, in fscrypt_setup_filename() 450 if (!fname->crypto_buf.name) in fscrypt_setup_filename() 453 ret = fscrypt_fname_encrypt(dir, iname, fname->crypto_buf.name, in fscrypt_setup_filename() 454 fname->crypto_buf.len); in fscrypt_setup_filename() [all …]
|
D | hooks.c | 110 struct fscrypt_name *fname) in __fscrypt_prepare_lookup() argument 112 int err = fscrypt_setup_filename(dir, &dentry->d_name, 1, fname); in __fscrypt_prepare_lookup() 117 if (fname->is_ciphertext_name) { in __fscrypt_prepare_lookup()
|
D | Makefile | 5 fname.o \
|
/fs/udf/ |
D | dir.c | 50 unsigned char *fname = NULL, *copy_name = NULL; in udf_readdir() local 88 fname = kmalloc(UDF_NAME_LEN, GFP_NOFS); in udf_readdir() 89 if (!fname) { in udf_readdir() 204 flen = udf_get_filename(sb, nameptr, lfi, fname, UDF_NAME_LEN); in udf_readdir() 210 if (!dir_emit(ctx, fname, flen, iblock, DT_UNKNOWN)) in udf_readdir() 224 kfree(fname); in udf_readdir()
|
D | namei.c | 172 unsigned char *fname = NULL, *copy_name = NULL; in udf_find_entry() local 214 fname = kmalloc(UDF_NAME_LEN, GFP_NOFS); in udf_find_entry() 215 if (!fname) { in udf_find_entry() 276 flen = udf_get_filename(sb, nameptr, lfi, fname, UDF_NAME_LEN); in udf_find_entry() 282 if (udf_match(flen, fname, child->len, child->name)) in udf_find_entry() 293 kfree(fname); in udf_find_entry()
|
/fs/ubifs/ |
D | debug.c | 2814 const char *fname; in dbg_debugfs_init_fs() local 2824 fname = d->dfs_dir_name; in dbg_debugfs_init_fs() 2825 d->dfs_dir = debugfs_create_dir(fname, dfs_rootdir); in dbg_debugfs_init_fs() 2827 fname = "dump_lprops"; in dbg_debugfs_init_fs() 2828 d->dfs_dump_lprops = debugfs_create_file(fname, S_IWUSR, d->dfs_dir, c, in dbg_debugfs_init_fs() 2831 fname = "dump_budg"; in dbg_debugfs_init_fs() 2832 d->dfs_dump_budg = debugfs_create_file(fname, S_IWUSR, d->dfs_dir, c, in dbg_debugfs_init_fs() 2835 fname = "dump_tnc"; in dbg_debugfs_init_fs() 2836 d->dfs_dump_tnc = debugfs_create_file(fname, S_IWUSR, d->dfs_dir, c, in dbg_debugfs_init_fs() 2839 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 | 1159 char *fname, int flen, struct iattr *iap, in nfsd_create_locked() argument 1270 char *fname, int flen, struct iattr *iap, in nfsd_create() argument 1277 if (isdotent(fname, flen)) in nfsd_create() 1291 dchild = lookup_one_len(fname, dentry, flen); in nfsd_create() 1303 return nfsd_create_locked(rqstp, fhp, fname, flen, iap, type, in nfsd_create() 1314 char *fname, int flen, struct iattr *iap, in do_nfsd_create() argument 1328 if (isdotent(fname, flen)) in do_nfsd_create() 1348 dchild = lookup_one_len(fname, dentry, flen); in do_nfsd_create() 1519 char *fname, int flen, in nfsd_symlink() argument 1531 if (isdotent(fname, flen)) in nfsd_symlink() [all …]
|
D | xdr.h | 49 char * fname; member 70 char * fname; member
|
D | xdr3.h | 67 char * fname; member 88 char * fname; member
|
D | nfsproc.c | 431 SVCFH_fmt(&argp->ffh), argp->flen, argp->fname); in nfsd_proc_rename() 435 nfserr = nfsd_rename(rqstp, &argp->ffh, argp->fname, argp->flen, in nfsd_proc_rename() 479 SVCFH_fmt(&argp->ffh), argp->flen, argp->fname, in nfsd_proc_symlink() 483 nfserr = nfsd_symlink(rqstp, &argp->ffh, argp->fname, argp->flen, in nfsd_proc_symlink()
|
D | nfs3proc.c | 300 argp->flen, argp->fname, in nfsd3_proc_symlink() 305 nfserr = nfsd_symlink(rqstp, &resp->dirfh, argp->fname, argp->flen, in nfsd3_proc_symlink() 402 argp->fname); in nfsd3_proc_rename() 410 nfserr = nfsd_rename(rqstp, &resp->ffh, argp->fname, argp->flen, in nfsd3_proc_rename()
|
D | nfsxdr.c | 334 || !(p = decode_filename(p, &args->fname, &args->flen)) in nfssvc_decode_renameargs() 376 || !(p = decode_filename(p, &args->fname, &args->flen))) in nfssvc_decode_symlinkargs()
|
/fs/xfs/ |
D | xfs_fsops.c | 469 char *fname, in xfs_do_force_shutdown() argument 497 __func__, flags, lnnum, fname, __return_address); in xfs_do_force_shutdown()
|
/fs/nilfs2/ |
D | bmap.c | 30 const char *fname, int err) in nilfs_bmap_convert_error() argument 35 __nilfs_error(inode->i_sb, fname, in nilfs_bmap_convert_error()
|