/fs/ubifs/ |
D | xattr.c | 101 const struct qstr *nm, const void *value, int size) in create_xattr() argument 119 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() 251 static int check_namespace(const struct qstr *nm) in check_namespace() argument 255 if (nm->len > UBIFS_MAX_NLEN) in check_namespace() 258 if (!strncmp(nm->name, XATTR_TRUSTED_PREFIX, in check_namespace() 260 if (nm->name[sizeof(XATTR_TRUSTED_PREFIX) - 1] == '\0') in check_namespace() [all …]
|
D | key.h | 154 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() 239 ino_t inum, const struct qstr *nm) in xent_key_init_flash() argument 242 uint32_t hash = c->key_hash(nm->name, nm->len); in xent_key_init_flash()
|
D | tnc.c | 539 const struct qstr *nm) in matches_name() argument 562 err = memcmp(dent->name, nm->name, min_t(int, nlen, nm->len)); in matches_name() 564 if (nlen == nm->len) in matches_name() 566 else if (nlen < nm->len) in matches_name() 709 const struct qstr *nm) in resolve_collision() argument 713 err = matches_name(c, &(*zn)->zbranch[*n], nm); in resolve_collision() 774 err = matches_name(c, &(*zn)->zbranch[*n], nm); in resolve_collision() 796 err = matches_name(c, &znode->zbranch[nn], nm); in resolve_collision() 827 const struct qstr *nm) in fallible_matches_name() argument 855 err = memcmp(dent->name, nm->name, min_t(int, nlen, nm->len)); in fallible_matches_name() [all …]
|
D | journal.c | 542 const struct qstr *nm, const struct inode *inode, in ubifs_jnl_update() argument 555 inode->i_ino, nm->len, nm->name, ui->data_len, dir->i_ino); in ubifs_jnl_update() 559 dlen = UBIFS_DENT_NODE_SZ + nm->len + 1; in ubifs_jnl_update() 587 dent_key_init(c, &dent_key, dir->i_ino, nm); in ubifs_jnl_update() 590 xent_key_init(c, &dent_key, dir->i_ino, nm); in ubifs_jnl_update() 596 dent->nlen = cpu_to_le16(nm->len); in ubifs_jnl_update() 597 memcpy(dent->name, nm->name, nm->len); in ubifs_jnl_update() 598 dent->name[nm->len] = '\0'; in ubifs_jnl_update() 629 err = ubifs_tnc_remove_nm(c, &dent_key, nm); in ubifs_jnl_update() 634 err = ubifs_tnc_add_nm(c, &dent_key, lnum, dent_offs, dlen, nm); in ubifs_jnl_update() [all …]
|
D | dir.c | 177 const struct qstr *nm) in dbg_check_name() argument 181 if (le16_to_cpu(dent->nlen) != nm->len) in dbg_check_name() 183 if (memcmp(dent->name, nm->name, nm->len)) in dbg_check_name() 190 #define dbg_check_name(c, dent, nm) 0 argument 361 struct qstr nm; in ubifs_readdir() local 412 nm.name = NULL; in ubifs_readdir() 413 dent = ubifs_tnc_next_ent(c, &key, &nm); in ubifs_readdir() 430 nm.name = NULL; in ubifs_readdir() 431 dent = ubifs_tnc_next_ent(c, &key, &nm); in ubifs_readdir() 447 nm.len = le16_to_cpu(dent->nlen); in ubifs_readdir() [all …]
|
D | replay.c | 64 struct qstr nm; member 232 err = ubifs_tnc_remove_nm(c, &r->key, &r->nm); in apply_replay_entry() 235 r->len, &r->nm); in apply_replay_entry() 331 kfree(r->nm.name); in destroy_replay_list() 434 r->nm.len = nlen; in insert_dent() 437 r->nm.name = nbuf; in insert_dent()
|
D | ubifs.h | 1529 const struct qstr *nm, const struct inode *inode, 1542 const struct inode *inode, const struct qstr *nm); 1577 void *node, const struct qstr *nm); 1585 int lnum, int offs, int len, const struct qstr *nm); 1588 const struct qstr *nm); 1594 const struct qstr *nm);
|
D | debug.c | 238 struct qstr nm = { .name = NULL }; in dbg_dump_inode() local 284 dent = ubifs_tnc_next_ent(c, &key, &nm); in dbg_dump_inode() 294 nm.name = dent->name; in dbg_dump_inode() 295 nm.len = le16_to_cpu(dent->nlen); in dbg_dump_inode() 1189 struct qstr nm = { .name = NULL }; in dbg_check_dir() local 1202 dent = ubifs_tnc_next_ent(c, &key, &nm); in dbg_check_dir() 1210 nm.name = dent->name; in dbg_check_dir() 1211 nm.len = le16_to_cpu(dent->nlen); in dbg_check_dir() 1212 size += CALC_DENT_SIZE(nm.len); in dbg_check_dir()
|