Commit 3ea842b1 authored by Anton Blanchard's avatar Anton Blanchard

ppc64: remove some old code

parent 6c5ace44
......@@ -446,7 +446,6 @@ struct old_linux_dirent32 {
u32 d_ino;
u32 d_offset;
unsigned short d_namlen;
/* unsigned char d_type; */
char d_name[1];
};
......@@ -497,22 +496,12 @@ asmlinkage int old32_readdir(unsigned int fd, struct old_linux_dirent32 *dirent,
return error;
}
#if 0
struct linux_dirent32 {
u32 d_ino;
u32 d_off;
unsigned short d_reclen;
char d_name[1];
};
#else
struct linux_dirent32 {
u32 d_ino;
u32 d_off;
unsigned short d_reclen;
/* unsigned char d_type; */
char d_name[256];
};
#endif
struct getdents_callback32 {
struct linux_dirent32 * current_dir;
......@@ -539,7 +528,6 @@ filldir(void * __buf, const char * name, int namlen, off_t offset, ino_t ino,
buf->previous = dirent;
put_user(ino, &dirent->d_ino);
put_user(reclen, &dirent->d_reclen);
/* put_user(d_type, &dirent->d_type); */
copy_to_user(dirent->d_name, name, namlen);
put_user(0, dirent->d_name + namlen);
((char *) dirent) += reclen;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment