summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Morton <akpm@digeo.com>2003-01-05 03:50:42 -0800
committerLinus Torvalds <torvalds@home.transmeta.com>2003-01-05 03:50:42 -0800
commit07ce6ac053470671cbc2b22d78e19d3fbeef32ad (patch)
tree8e1a0a80500b5ee4d7993da300e36add21c4f1cd /include
parent0d5f0a37701076e152323c221151874665c48852 (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.h13
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