Lines Matching refs:gfs2_dirent

86 typedef int (*gfs2_dscan_t)(const struct gfs2_dirent *dent,
396 static inline int gfs2_dirent_sentinel(const struct gfs2_dirent *dent)
401 static inline int __gfs2_dirent_find(const struct gfs2_dirent *dent,
412 static int gfs2_dirent_find(const struct gfs2_dirent *dent,
419 static int gfs2_dirent_prev(const struct gfs2_dirent *dent,
430 static int gfs2_dirent_last(const struct gfs2_dirent *dent,
443 static int gfs2_dirent_find_offset(const struct gfs2_dirent *dent,
462 static int gfs2_dirent_find_space(const struct gfs2_dirent *dent,
478 const struct gfs2_dirent **pdent;
482 static int gfs2_dirent_gather(const struct gfs2_dirent *dent,
503 struct gfs2_dirent *dent, unsigned int offset,
506 const char *msg = "gfs2_dirent too small";
507 if (unlikely(size < sizeof(struct gfs2_dirent)))
509 msg = "gfs2_dirent misaligned";
512 msg = "gfs2_dirent points beyond end of block";
520 unlikely(sizeof(struct gfs2_dirent)+be16_to_cpu(dent->de_name_len) >
554 static struct gfs2_dirent *gfs2_dirent_scan(struct inode *inode, void *buf,
559 struct gfs2_dirent *dent, *prev;
607 const struct gfs2_dirent *d, const void *end_p)
612 if (unlikely(rec_len < sizeof(struct gfs2_dirent)))
634 struct gfs2_dirent **dent)
636 struct gfs2_dirent *cur = *dent, *tmp;
669 struct gfs2_dirent *prev, struct gfs2_dirent *cur)
705 static struct gfs2_dirent *do_init_dirent(struct inode *inode,
706 struct gfs2_dirent *dent,
712 struct gfs2_dirent *ndent;
718 ndent = (struct gfs2_dirent *)((char *)dent + offset);
729 static struct gfs2_dirent *gfs2_init_dirent(struct inode *inode,
730 struct gfs2_dirent *dent,
741 static struct gfs2_dirent *gfs2_dirent_split_alloc(struct inode *inode,
746 struct gfs2_dirent *dent;
805 static struct gfs2_dirent *gfs2_dirent_search(struct inode *inode,
811 struct gfs2_dirent *dent;
868 struct gfs2_dirent *dent;
891 dent = (struct gfs2_dirent *)(leaf+1);
908 struct gfs2_dirent *dent;
1003 struct gfs2_dirent *dent = NULL, *prev = NULL, *next = NULL, *new;
1078 dent = (struct gfs2_dirent *)(obh->b_data + sizeof(struct gfs2_leaf));
1217 const struct gfs2_dirent *dent_a, *dent_b;
1221 dent_a = *(const struct gfs2_dirent **)a;
1224 dent_b = *(const struct gfs2_dirent **)b;
1250 * @darr: an array of struct gfs2_dirent pointers to read
1264 struct gfs2_dirent **darr, u32 entries,
1267 const struct gfs2_dirent *dent, *dent_next;
1274 sizeof(struct gfs2_dirent *), compare_dents, NULL);
1334 unsigned leaf_nr, struct gfs2_dirent **darr,
1376 struct gfs2_dirent **darr, *dent;
1413 darr = (struct gfs2_dirent **)(larr + leaves);
1414 g.pdent = (const struct gfs2_dirent **)darr;
1573 struct gfs2_dirent **darr, *dent;
1595 darr = kmalloc_array(96, sizeof(struct gfs2_dirent *), GFP_NOFS);
1597 g.pdent = (const struct gfs2_dirent **)darr;
1646 struct gfs2_dirent *dent;
1677 struct gfs2_dirent *dent;
1800 struct gfs2_dirent *dent = da->dent;
1877 struct gfs2_dirent *dent, *prev = NULL;
1895 dent = (struct gfs2_dirent *)((char *)dent + be16_to_cpu(prev->de_rec_len));
1940 struct gfs2_dirent *dent;
2162 struct gfs2_dirent *dent;