ext2_readdir commenting Signed off by FabF --- diff -puN fs/ext2/dir.c~ext2readdir_comment fs/ext2/dir.c --- linux-2.6.7/fs/ext2/dir.c~ext2readdir_comment 2004-07-06 22:20:14.514980596 +0200 +++ linux-2.6.7-heatwave/fs/ext2/dir.c 2004-07-06 22:31:52.822458517 +0200 @@ -245,6 +245,12 @@ static inline void ext2_set_de_type(ext2 de->file_type = 0; } +/* + * ext2_readdir() + * + * copy directory entries to userland from its current offset (filp->f_pos) + * up to the end or when buffer is full (over=-EFAULT | -EINVAL) + */ static int ext2_readdir (struct file * filp, void * dirent, filldir_t filldir) { _