Lines Matching refs:nm
182 const struct fscrypt_name *nm) in dbg_check_name() argument
186 if (le16_to_cpu(dent->nlen) != fname_len(nm)) in dbg_check_name()
188 if (memcmp(dent->name, fname_name(nm), fname_len(nm))) in dbg_check_name()
201 struct fscrypt_name nm; in ubifs_lookup() local
205 err = fscrypt_prepare_lookup(dir, dentry, &nm); in ubifs_lookup()
211 if (fname_len(&nm) > UBIFS_MAX_NLEN) { in ubifs_lookup()
222 if (fname_name(&nm) == NULL) { in ubifs_lookup()
223 if (nm.hash & ~UBIFS_S_KEY_HASH_MASK) in ubifs_lookup()
225 dent_key_init_hash(c, &key, dir->i_ino, nm.hash); in ubifs_lookup()
226 err = ubifs_tnc_lookup_dh(c, &key, dent, nm.minor_hash); in ubifs_lookup()
228 dent_key_init(c, &key, dir->i_ino, &nm); in ubifs_lookup()
229 err = ubifs_tnc_lookup_nm(c, &key, dent, &nm); in ubifs_lookup()
240 if (dbg_check_name(c, dent, &nm)) { in ubifs_lookup()
269 fscrypt_free_filename(&nm); in ubifs_lookup()
281 struct fscrypt_name nm; in ubifs_create() local
296 err = fscrypt_setup_filename(dir, &dentry->d_name, 0, &nm); in ubifs_create()
300 sz_change = CALC_DENT_SIZE(fname_len(&nm)); in ubifs_create()
316 err = ubifs_jnl_update(c, dir, &nm, inode, 0, 0); in ubifs_create()
322 fscrypt_free_filename(&nm); in ubifs_create()
335 fscrypt_free_filename(&nm); in ubifs_create()
351 struct fscrypt_name nm; in do_tmpfile() local
361 err = fscrypt_setup_filename(dir, &dentry->d_name, 0, &nm); in do_tmpfile()
367 fscrypt_free_filename(&nm); in do_tmpfile()
374 fscrypt_free_filename(&nm); in do_tmpfile()
410 err = ubifs_jnl_update(c, dir, &nm, inode, 1, 0); in do_tmpfile()
429 fscrypt_free_filename(&nm); in do_tmpfile()
490 struct fscrypt_name nm; in ubifs_readdir() local
548 fname_len(&nm) = 0; in ubifs_readdir()
549 dent = ubifs_tnc_next_ent(c, &key, &nm); in ubifs_readdir()
566 fname_len(&nm) = 0; in ubifs_readdir()
567 dent = ubifs_tnc_next_ent(c, &key, &nm); in ubifs_readdir()
583 fname_len(&nm) = le16_to_cpu(dent->nlen); in ubifs_readdir()
584 fname_name(&nm) = dent->name; in ubifs_readdir()
592 &nm.disk_name, &fstr); in ubifs_readdir()
596 fstr.len = fname_len(&nm); in ubifs_readdir()
597 fstr.name = fname_name(&nm); in ubifs_readdir()
610 dent = ubifs_tnc_next_ent(c, &key, &nm); in ubifs_readdir()
689 struct fscrypt_name nm; in ubifs_link() local
706 err = fscrypt_setup_filename(dir, &dentry->d_name, 0, &nm); in ubifs_link()
730 err = ubifs_jnl_update(c, dir, &nm, inode, 0, 0); in ubifs_link()
737 fscrypt_free_filename(&nm); in ubifs_link()
750 fscrypt_free_filename(&nm); in ubifs_link()
762 struct fscrypt_name nm; in ubifs_unlink() local
775 err = fscrypt_setup_filename(dir, &dentry->d_name, 1, &nm); in ubifs_unlink()
783 sz_change = CALC_DENT_SIZE(fname_len(&nm)); in ubifs_unlink()
804 err = ubifs_jnl_update(c, dir, &nm, inode, 1, 0); in ubifs_unlink()
816 fscrypt_free_filename(&nm); in ubifs_unlink()
827 fscrypt_free_filename(&nm); in ubifs_unlink()
842 struct fscrypt_name nm = { 0 }; in ubifs_check_dir_empty() local
848 dent = ubifs_tnc_next_ent(c, &key, &nm); in ubifs_check_dir_empty()
867 struct fscrypt_name nm; in ubifs_rmdir() local
883 err = fscrypt_setup_filename(dir, &dentry->d_name, 1, &nm); in ubifs_rmdir()
891 sz_change = CALC_DENT_SIZE(fname_len(&nm)); in ubifs_rmdir()
907 err = ubifs_jnl_update(c, dir, &nm, inode, 1, 0); in ubifs_rmdir()
919 fscrypt_free_filename(&nm); in ubifs_rmdir()
931 fscrypt_free_filename(&nm); in ubifs_rmdir()
942 struct fscrypt_name nm; in ubifs_mkdir() local
956 err = fscrypt_setup_filename(dir, &dentry->d_name, 0, &nm); in ubifs_mkdir()
960 sz_change = CALC_DENT_SIZE(fname_len(&nm)); in ubifs_mkdir()
979 err = ubifs_jnl_update(c, dir, &nm, inode, 0, 0); in ubifs_mkdir()
988 fscrypt_free_filename(&nm); in ubifs_mkdir()
1000 fscrypt_free_filename(&nm); in ubifs_mkdir()
1018 struct fscrypt_name nm; in ubifs_mknod() local
1041 err = fscrypt_setup_filename(dir, &dentry->d_name, 0, &nm); in ubifs_mknod()
1047 sz_change = CALC_DENT_SIZE(fname_len(&nm)); in ubifs_mknod()
1070 err = ubifs_jnl_update(c, dir, &nm, inode, 0, 0); in ubifs_mknod()
1078 fscrypt_free_filename(&nm); in ubifs_mknod()
1089 fscrypt_free_filename(&nm); in ubifs_mknod()
1107 struct fscrypt_name nm; in ubifs_symlink() local
1125 err = fscrypt_setup_filename(dir, &dentry->d_name, 0, &nm); in ubifs_symlink()
1129 sz_change = CALC_DENT_SIZE(fname_len(&nm)); in ubifs_symlink()
1170 err = ubifs_jnl_update(c, dir, &nm, inode, 0, 0); in ubifs_symlink()
1188 fscrypt_free_filename(&nm); in ubifs_symlink()