Lines Matching refs:name

15  * actually required for the name (no null terminator). The field de_rec_len
87 const struct qstr *name, void *opaque);
403 const struct qstr *name, int ret)
406 be32_to_cpu(dent->de_hash) == name->hash &&
407 be16_to_cpu(dent->de_name_len) == name->len &&
408 memcmp(dent+1, name->name, name->len) == 0)
414 const struct qstr *name,
417 return __gfs2_dirent_find(dent, name, 1);
421 const struct qstr *name,
424 return __gfs2_dirent_find(dent, name, 2);
428 * name->name holds ptr to start of block.
429 * name->len holds size of block.
432 const struct qstr *name,
435 const char *start = name->name;
437 if (name->len == (end - start))
445 const struct qstr *name,
448 unsigned required = GFS2_DIRENT_SIZE(name->len);
464 const struct qstr *name,
467 unsigned required = GFS2_DIRENT_SIZE(name->len);
484 const struct qstr *name,
519 msg = "name length is greater than space in dirent";
557 const struct qstr *name,
576 ret = scan(dent, name, opaque);
708 const struct qstr *name,
717 BUG_ON(offset + name->len > totlen);
721 gfs2_qstr2dirent(name, totlen - offset, ndent);
732 const struct qstr *name,
739 return do_init_dirent(inode, dent, name, bh, offset);
744 const struct qstr *name,
749 gfs2_dirent_find_offset, name, ptr);
752 return do_init_dirent(inode, dent, name, bh,
808 const struct qstr *name,
827 index = name->hash >> (32 - ip->i_depth);
833 scan, name, NULL);
852 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, scan, name, NULL);
944 args.name = bh->b_data;
1001 static int dir_split_leaf(struct inode *inode, const struct qstr *name)
1014 index = name->hash >> (32 - dip->i_depth);
1092 str.name = (char*)(dent+1);
1631 * @name: The name we are looking up
1632 * @fail_on_exist: Fail if the name exists rather than looking it up
1640 struct inode *gfs2_dir_search(struct inode *dir, const struct qstr *name,
1648 dent = gfs2_dirent_search(dir, name, gfs2_dirent_find, &bh);
1671 int gfs2_dir_check(struct inode *dir, const struct qstr *name,
1678 dent = gfs2_dirent_search(dir, name, gfs2_dirent_find, &bh);
1705 * @name: The name we are adding
1721 static int dir_new_leaf(struct inode *inode, const struct qstr *name)
1731 index = name->hash >> (32 - ip->i_depth);
1780 * @name: The new name
1793 int gfs2_dir_add(struct inode *inode, const struct qstr *name,
1805 dent = gfs2_dirent_search(inode, name,
1811 dent = gfs2_init_dirent(inode, dent, name, bh);
1839 error = dir_split_leaf(inode, name);
1848 error = dir_split_leaf(inode, name);
1854 error = dir_new_leaf(inode, name);
1874 const struct qstr *name = &dentry->d_name;
1881 dent = gfs2_dirent_search(&dip->i_inode, name, gfs2_dirent_prev, &bh);
1891 if (gfs2_dirent_find(dent, name, NULL) == 0) {
2152 int gfs2_diradd_alloc_required(struct inode *inode, const struct qstr *name,
2165 dent = gfs2_dirent_search(inode, name, gfs2_dirent_find_space, &bh);
2169 (GFS2_DIRENT_SIZE(name->len) < extra))