Lines Matching refs:gfs2_dirent

86 typedef int (*gfs2_dscan_t)(const struct gfs2_dirent *dent,
397 static inline int gfs2_dirent_sentinel(const struct gfs2_dirent *dent)
402 static inline int __gfs2_dirent_find(const struct gfs2_dirent *dent,
413 static int gfs2_dirent_find(const struct gfs2_dirent *dent,
420 static int gfs2_dirent_prev(const struct gfs2_dirent *dent,
431 static int gfs2_dirent_last(const struct gfs2_dirent *dent,
444 static int gfs2_dirent_find_offset(const struct gfs2_dirent *dent,
463 static int gfs2_dirent_find_space(const struct gfs2_dirent *dent,
479 const struct gfs2_dirent **pdent;
483 static int gfs2_dirent_gather(const struct gfs2_dirent *dent,
504 struct gfs2_dirent *dent, unsigned int offset,
507 const char *msg = "gfs2_dirent too small";
508 if (unlikely(size < sizeof(struct gfs2_dirent)))
510 msg = "gfs2_dirent misaligned";
513 msg = "gfs2_dirent points beyond end of block";
521 unlikely(sizeof(struct gfs2_dirent)+be16_to_cpu(dent->de_name_len) >
555 static struct gfs2_dirent *gfs2_dirent_scan(struct inode *inode, void *buf,
560 struct gfs2_dirent *dent, *prev;
608 const struct gfs2_dirent *d, const void *end_p)
613 if (unlikely(rec_len < sizeof(struct gfs2_dirent)))
635 struct gfs2_dirent **dent)
637 struct gfs2_dirent *cur = *dent, *tmp;
670 struct gfs2_dirent *prev, struct gfs2_dirent *cur)
706 static struct gfs2_dirent *do_init_dirent(struct inode *inode,
707 struct gfs2_dirent *dent,
713 struct gfs2_dirent *ndent;
719 ndent = (struct gfs2_dirent *)((char *)dent + offset);
730 static struct gfs2_dirent *gfs2_init_dirent(struct inode *inode,
731 struct gfs2_dirent *dent,
742 static struct gfs2_dirent *gfs2_dirent_split_alloc(struct inode *inode,
747 struct gfs2_dirent *dent;
807 static struct gfs2_dirent *gfs2_dirent_search(struct inode *inode,
813 struct gfs2_dirent *dent;
870 struct gfs2_dirent *dent;
893 dent = (struct gfs2_dirent *)(leaf+1);
910 struct gfs2_dirent *dent;
1006 struct gfs2_dirent *dent = NULL, *prev = NULL, *next = NULL, *new;
1081 dent = (struct gfs2_dirent *)(obh->b_data + sizeof(struct gfs2_leaf));
1220 const struct gfs2_dirent *dent_a, *dent_b;
1224 dent_a = *(const struct gfs2_dirent **)a;
1227 dent_b = *(const struct gfs2_dirent **)b;
1253 * @darr: an array of struct gfs2_dirent pointers to read
1266 struct gfs2_dirent **darr, u32 entries,
1269 const struct gfs2_dirent *dent, *dent_next;
1276 sizeof(struct gfs2_dirent *), compare_dents, NULL);
1336 unsigned leaf_nr, struct gfs2_dirent **darr,
1378 struct gfs2_dirent **darr, *dent;
1415 darr = (struct gfs2_dirent **)(larr + leaves);
1416 g.pdent = (const struct gfs2_dirent **)darr;
1571 struct gfs2_dirent **darr, *dent;
1593 darr = kmalloc_array(96, sizeof(struct gfs2_dirent *), GFP_NOFS);
1595 g.pdent = (const struct gfs2_dirent **)darr;
1644 struct gfs2_dirent *dent;
1675 struct gfs2_dirent *dent;
1798 struct gfs2_dirent *dent = da->dent;
1875 struct gfs2_dirent *dent, *prev = NULL;
1893 dent = (struct gfs2_dirent *)((char *)dent + be16_to_cpu(prev->de_rec_len));
1936 struct gfs2_dirent *dent;
2158 struct gfs2_dirent *dent;