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);
402 const struct qstr *name, int ret)
405 be32_to_cpu(dent->de_hash) == name->hash &&
406 be16_to_cpu(dent->de_name_len) == name->len &&
407 memcmp(dent+1, name->name, name->len) == 0)
413 const struct qstr *name,
416 return __gfs2_dirent_find(dent, name, 1);
420 const struct qstr *name,
423 return __gfs2_dirent_find(dent, name, 2);
427 * name->name holds ptr to start of block.
428 * name->len holds size of block.
431 const struct qstr *name,
434 const char *start = name->name;
436 if (name->len == (end - start))
444 const struct qstr *name,
447 unsigned required = GFS2_DIRENT_SIZE(name->len);
463 const struct qstr *name,
466 unsigned required = GFS2_DIRENT_SIZE(name->len);
483 const struct qstr *name,
518 msg = "name length is greater than space in dirent";
556 const struct qstr *name,
575 ret = scan(dent, name, opaque);
707 const struct qstr *name,
716 BUG_ON(offset + name->len > totlen);
720 gfs2_qstr2dirent(name, totlen - offset, ndent);
731 const struct qstr *name,
738 return do_init_dirent(inode, dent, name, bh, offset);
743 const struct qstr *name,
748 gfs2_dirent_find_offset, name, ptr);
751 return do_init_dirent(inode, dent, name, bh,
806 const struct qstr *name,
825 index = name->hash >> (32 - ip->i_depth);
831 scan, name, NULL);
850 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, scan, name, NULL);
942 args.name = bh->b_data;
993 * @name: name of the dirent we're trying to insert
998 static int dir_split_leaf(struct inode *inode, const struct qstr *name)
1011 index = name->hash >> (32 - dip->i_depth);
1089 str.name = (char*)(dent+1);
1633 * @name: The name we are looking up
1634 * @fail_on_exist: Fail if the name exists rather than looking it up
1642 struct inode *gfs2_dir_search(struct inode *dir, const struct qstr *name,
1650 dent = gfs2_dirent_search(dir, name, gfs2_dirent_find, &bh);
1673 int gfs2_dir_check(struct inode *dir, const struct qstr *name,
1680 dent = gfs2_dirent_search(dir, name, gfs2_dirent_find, &bh);
1707 * @name: The name we are adding
1723 static int dir_new_leaf(struct inode *inode, const struct qstr *name)
1733 index = name->hash >> (32 - ip->i_depth);
1782 * @name: The new name
1795 int gfs2_dir_add(struct inode *inode, const struct qstr *name,
1807 dent = gfs2_dirent_search(inode, name,
1813 dent = gfs2_init_dirent(inode, dent, name, bh);
1841 error = dir_split_leaf(inode, name);
1850 error = dir_split_leaf(inode, name);
1856 error = dir_new_leaf(inode, name);
1876 const struct qstr *name = &dentry->d_name;
1883 dent = gfs2_dirent_search(&dip->i_inode, name, gfs2_dirent_prev, &bh);
1893 if (gfs2_dirent_find(dent, name, NULL) == 0) {
2150 * @name: the filename that's going to be added
2156 int gfs2_diradd_alloc_required(struct inode *inode, const struct qstr *name,
2169 dent = gfs2_dirent_search(inode, name, gfs2_dirent_find_space, &bh);
2173 (GFS2_DIRENT_SIZE(name->len) < extra))