Lines Matching refs:jfs_dirent
2976 struct jfs_dirent { struct
2986 static inline struct jfs_dirent *next_jfs_dirent(struct jfs_dirent *dirent) in next_jfs_dirent()
2988 return (struct jfs_dirent *) in next_jfs_dirent()
2990 ((sizeof (struct jfs_dirent) + dirent->name_len + 1 + in next_jfs_dirent()
3032 struct jfs_dirent *jfs_dirent; in jfs_readdir() local
3191 jfs_dirent = (struct jfs_dirent *) dirent_buf; in jfs_readdir()
3200 if (((long) jfs_dirent + d->namlen + 1) > in jfs_readdir()
3209 name_ptr = jfs_dirent->name; in jfs_readdir()
3210 jfs_dirent->ino = le32_to_cpu(d->inumber); in jfs_readdir()
3214 jfs_dirent->position = le32_to_cpu(d->index); in jfs_readdir()
3222 if ((jfs_dirent->position < 2) || in jfs_readdir()
3223 (jfs_dirent->position >= in jfs_readdir()
3237 jfs_dirent->position = unique_pos++; in jfs_readdir()
3244 jfs_dirent->position++; in jfs_readdir()
3246 jfs_dirent->position = dtpos; in jfs_readdir()
3253 jfs_dirent->name_len = outlen; in jfs_readdir()
3273 jfs_dirent->name_len += outlen; in jfs_readdir()
3279 jfs_dirent = next_jfs_dirent(jfs_dirent); in jfs_readdir()
3304 jfs_dirent = (struct jfs_dirent *) dirent_buf; in jfs_readdir()
3306 ctx->pos = jfs_dirent->position; in jfs_readdir()
3307 if (!dir_emit(ctx, jfs_dirent->name, in jfs_readdir()
3308 jfs_dirent->name_len, in jfs_readdir()
3309 jfs_dirent->ino, DT_UNKNOWN)) in jfs_readdir()
3311 jfs_dirent = next_jfs_dirent(jfs_dirent); in jfs_readdir()