Lines Matching refs:nm

184 			  const struct fscrypt_name *nm)  in dbg_check_name()  argument
188 if (le16_to_cpu(dent->nlen) != fname_len(nm)) in dbg_check_name()
190 if (memcmp(dent->name, fname_name(nm), fname_len(nm))) in dbg_check_name()
203 struct fscrypt_name nm; in ubifs_lookup() local
207 err = fscrypt_prepare_lookup(dir, dentry, &nm); in ubifs_lookup()
214 if (fname_len(&nm) > UBIFS_MAX_NLEN) { in ubifs_lookup()
225 if (fname_name(&nm) == NULL) { in ubifs_lookup()
226 if (nm.hash & ~UBIFS_S_KEY_HASH_MASK) in ubifs_lookup()
228 dent_key_init_hash(c, &key, dir->i_ino, nm.hash); in ubifs_lookup()
229 err = ubifs_tnc_lookup_dh(c, &key, dent, nm.minor_hash); in ubifs_lookup()
231 dent_key_init(c, &key, dir->i_ino, &nm); in ubifs_lookup()
232 err = ubifs_tnc_lookup_nm(c, &key, dent, &nm); in ubifs_lookup()
243 if (dbg_check_name(c, dent, &nm)) { in ubifs_lookup()
272 fscrypt_free_filename(&nm); in ubifs_lookup()
277 struct fscrypt_name *nm) in ubifs_prepare_create() argument
282 return fscrypt_setup_filename(dir, &dentry->d_name, 0, nm); in ubifs_prepare_create()
293 struct fscrypt_name nm; in ubifs_create() local
308 err = ubifs_prepare_create(dir, dentry, &nm); in ubifs_create()
312 sz_change = CALC_DENT_SIZE(fname_len(&nm)); in ubifs_create()
328 err = ubifs_jnl_update(c, dir, &nm, inode, 0, 0); in ubifs_create()
334 fscrypt_free_filename(&nm); in ubifs_create()
347 fscrypt_free_filename(&nm); in ubifs_create()
433 struct fscrypt_name nm; in ubifs_tmpfile() local
445 err = fscrypt_setup_filename(dir, &dentry->d_name, 0, &nm); in ubifs_tmpfile()
451 fscrypt_free_filename(&nm); in ubifs_tmpfile()
458 fscrypt_free_filename(&nm); in ubifs_tmpfile()
482 err = ubifs_jnl_update(c, dir, &nm, inode, 1, 0); in ubifs_tmpfile()
488 fscrypt_free_filename(&nm); in ubifs_tmpfile()
502 fscrypt_free_filename(&nm); in ubifs_tmpfile()
557 struct fscrypt_name nm; in ubifs_readdir() local
615 fname_len(&nm) = 0; in ubifs_readdir()
616 dent = ubifs_tnc_next_ent(c, &key, &nm); in ubifs_readdir()
633 fname_len(&nm) = 0; in ubifs_readdir()
634 dent = ubifs_tnc_next_ent(c, &key, &nm); in ubifs_readdir()
650 fname_len(&nm) = le16_to_cpu(dent->nlen); in ubifs_readdir()
651 fname_name(&nm) = dent->name; in ubifs_readdir()
659 &nm.disk_name, &fstr); in ubifs_readdir()
663 fstr.len = fname_len(&nm); in ubifs_readdir()
664 fstr.name = fname_name(&nm); in ubifs_readdir()
677 dent = ubifs_tnc_next_ent(c, &key, &nm); in ubifs_readdir()
730 struct fscrypt_name nm; in ubifs_link() local
747 err = fscrypt_setup_filename(dir, &dentry->d_name, 0, &nm); in ubifs_link()
771 err = ubifs_jnl_update(c, dir, &nm, inode, 0, 0); in ubifs_link()
778 fscrypt_free_filename(&nm); in ubifs_link()
791 fscrypt_free_filename(&nm); in ubifs_link()
803 struct fscrypt_name nm; in ubifs_unlink() local
816 err = fscrypt_setup_filename(dir, &dentry->d_name, 1, &nm); in ubifs_unlink()
824 sz_change = CALC_DENT_SIZE(fname_len(&nm)); in ubifs_unlink()
845 err = ubifs_jnl_update(c, dir, &nm, inode, 1, 0); in ubifs_unlink()
857 fscrypt_free_filename(&nm); in ubifs_unlink()
868 fscrypt_free_filename(&nm); in ubifs_unlink()
883 struct fscrypt_name nm = { 0 }; in ubifs_check_dir_empty() local
889 dent = ubifs_tnc_next_ent(c, &key, &nm); in ubifs_check_dir_empty()
908 struct fscrypt_name nm; in ubifs_rmdir() local
924 err = fscrypt_setup_filename(dir, &dentry->d_name, 1, &nm); in ubifs_rmdir()
932 sz_change = CALC_DENT_SIZE(fname_len(&nm)); in ubifs_rmdir()
948 err = ubifs_jnl_update(c, dir, &nm, inode, 1, 0); in ubifs_rmdir()
960 fscrypt_free_filename(&nm); in ubifs_rmdir()
972 fscrypt_free_filename(&nm); in ubifs_rmdir()
985 struct fscrypt_name nm; in ubifs_mkdir() local
999 err = ubifs_prepare_create(dir, dentry, &nm); in ubifs_mkdir()
1003 sz_change = CALC_DENT_SIZE(fname_len(&nm)); in ubifs_mkdir()
1022 err = ubifs_jnl_update(c, dir, &nm, inode, 0, 0); in ubifs_mkdir()
1031 fscrypt_free_filename(&nm); in ubifs_mkdir()
1043 fscrypt_free_filename(&nm); in ubifs_mkdir()
1061 struct fscrypt_name nm; in ubifs_mknod() local
1084 err = ubifs_prepare_create(dir, dentry, &nm); in ubifs_mknod()
1090 sz_change = CALC_DENT_SIZE(fname_len(&nm)); in ubifs_mknod()
1113 err = ubifs_jnl_update(c, dir, &nm, inode, 0, 0); in ubifs_mknod()
1121 fscrypt_free_filename(&nm); in ubifs_mknod()
1132 fscrypt_free_filename(&nm); in ubifs_mknod()
1149 struct fscrypt_name nm; in ubifs_symlink() local
1168 err = ubifs_prepare_create(dir, dentry, &nm); in ubifs_symlink()
1172 sz_change = CALC_DENT_SIZE(fname_len(&nm)); in ubifs_symlink()
1213 err = ubifs_jnl_update(c, dir, &nm, inode, 0, 0); in ubifs_symlink()
1233 fscrypt_free_filename(&nm); in ubifs_symlink()