diff options
| author | Andrew Morton <akpm@digeo.com> | 2003-01-05 03:50:42 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-01-05 03:50:42 -0800 |
| commit | 07ce6ac053470671cbc2b22d78e19d3fbeef32ad (patch) | |
| tree | 8e1a0a80500b5ee4d7993da300e36add21c4f1cd /include | |
| parent | 0d5f0a37701076e152323c221151874665c48852 (diff) | |
[PATCH] devfs mount-time readdir fix and cleanup
Patch from Adam J. Richter <adam@yggdrasil.com> and
Milton Miller <miltonm@bga.com>
There's some init-time code which is supposed to read a devfs directory by
expanding the bufer until the whole directory fits. But the logic is wrong
and it only works if the whole directory fits into 512 bytes.
So fix that up, and also clean up some coding in there, and rationalise the
duplicated definition of linux_dirent64.
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/dirent.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/dirent.h b/include/linux/dirent.h index bef1120cba96..5d6023b87800 100644 --- a/include/linux/dirent.h +++ b/include/linux/dirent.h @@ -16,4 +16,17 @@ struct dirent64 { char d_name[256]; }; +#ifdef __KERNEL__ + +struct linux_dirent64 { + u64 d_ino; + s64 d_off; + unsigned short d_reclen; + unsigned char d_type; + char d_name[0]; +}; + +#endif /* __KERNEL__ */ + + #endif |
