Home
last modified time | relevance | path

Searched refs:nm (Results 1 – 8 of 8) sorted by relevance

/fs/ubifs/
Dxattr.c100 const struct qstr *nm, const void *value, int size) in create_xattr() argument
118 nm->len + 1 > XATTR_LIST_MAX) in create_xattr()
152 host_ui->xattr_size += CALC_DENT_SIZE(nm->len); in create_xattr()
154 host_ui->xattr_names += nm->len; in create_xattr()
156 err = ubifs_jnl_update(c, host, nm, inode, 0, 1); in create_xattr()
168 host_ui->xattr_size -= CALC_DENT_SIZE(nm->len); in create_xattr()
252 static int check_namespace(const struct qstr *nm) in check_namespace() argument
256 if (nm->len > UBIFS_MAX_NLEN) in check_namespace()
259 if (!strncmp(nm->name, XATTR_TRUSTED_PREFIX, in check_namespace()
261 if (nm->name[sizeof(XATTR_TRUSTED_PREFIX) - 1] == '\0') in check_namespace()
[all …]
Dkey.h154 const struct qstr *nm) in dent_key_init() argument
156 uint32_t hash = c->key_hash(nm->name, nm->len); in dent_key_init()
188 ino_t inum, const struct qstr *nm) in dent_key_init_flash() argument
191 uint32_t hash = c->key_hash(nm->name, nm->len); in dent_key_init_flash()
222 const struct qstr *nm) in xent_key_init() argument
224 uint32_t hash = c->key_hash(nm->name, nm->len); in xent_key_init()
256 ino_t inum, const struct qstr *nm) in xent_key_init_flash() argument
259 uint32_t hash = c->key_hash(nm->name, nm->len); in xent_key_init_flash()
Dtnc.c535 const struct qstr *nm) in matches_name() argument
558 err = memcmp(dent->name, nm->name, min_t(int, nlen, nm->len)); in matches_name()
560 if (nlen == nm->len) in matches_name()
562 else if (nlen < nm->len) in matches_name()
705 const struct qstr *nm) in resolve_collision() argument
709 err = matches_name(c, &(*zn)->zbranch[*n], nm); in resolve_collision()
770 err = matches_name(c, &(*zn)->zbranch[*n], nm); in resolve_collision()
792 err = matches_name(c, &znode->zbranch[nn], nm); in resolve_collision()
823 const struct qstr *nm) in fallible_matches_name() argument
851 err = memcmp(dent->name, nm->name, min_t(int, nlen, nm->len)); in fallible_matches_name()
[all …]
Djournal.c536 const struct qstr *nm, const struct inode *inode, in ubifs_jnl_update() argument
549 inode->i_ino, nm->len, nm->name, ui->data_len, dir->i_ino); in ubifs_jnl_update()
553 dlen = UBIFS_DENT_NODE_SZ + nm->len + 1; in ubifs_jnl_update()
581 dent_key_init(c, &dent_key, dir->i_ino, nm); in ubifs_jnl_update()
584 xent_key_init(c, &dent_key, dir->i_ino, nm); in ubifs_jnl_update()
590 dent->nlen = cpu_to_le16(nm->len); in ubifs_jnl_update()
591 memcpy(dent->name, nm->name, nm->len); in ubifs_jnl_update()
592 dent->name[nm->len] = '\0'; in ubifs_jnl_update()
623 err = ubifs_tnc_remove_nm(c, &dent_key, nm); in ubifs_jnl_update()
628 err = ubifs_tnc_add_nm(c, &dent_key, lnum, dent_offs, dlen, nm); in ubifs_jnl_update()
[all …]
Ddir.c182 static int dbg_check_name(struct ubifs_dent_node *dent, struct qstr *nm) in dbg_check_name() argument
186 if (le16_to_cpu(dent->nlen) != nm->len) in dbg_check_name()
188 if (memcmp(dent->name, nm->name, nm->len)) in dbg_check_name()
195 #define dbg_check_name(dent, nm) 0 argument
365 struct qstr nm; in ubifs_readdir() local
398 nm.name = NULL; in ubifs_readdir()
399 dent = ubifs_tnc_next_ent(c, &key, &nm); in ubifs_readdir()
417 nm.name = NULL; in ubifs_readdir()
418 dent = ubifs_tnc_next_ent(c, &key, &nm); in ubifs_readdir()
434 nm.len = le16_to_cpu(dent->nlen); in ubifs_readdir()
[all …]
Dreplay.c75 struct qstr nm; member
215 err = ubifs_tnc_remove_nm(c, &r->key, &r->nm); in apply_replay_entry()
218 r->len, &r->nm); in apply_replay_entry()
278 kfree(r->nm.name); in destroy_replay_tree()
439 r->nm.len = nlen; in insert_dent()
442 r->nm.name = nbuf; in insert_dent()
Dubifs.h1467 const struct qstr *nm, const struct inode *inode,
1480 const struct inode *inode, const struct qstr *nm);
1515 void *node, const struct qstr *nm);
1523 int lnum, int offs, int len, const struct qstr *nm);
1526 const struct qstr *nm);
1532 const struct qstr *nm);
Ddebug.c973 struct qstr nm = { .name = NULL }; in dbg_check_dir_size() local
986 dent = ubifs_tnc_next_ent(c, &key, &nm); in dbg_check_dir_size()
994 nm.name = dent->name; in dbg_check_dir_size()
995 nm.len = le16_to_cpu(dent->nlen); in dbg_check_dir_size()
996 size += CALC_DENT_SIZE(nm.len); in dbg_check_dir_size()