Re: [CFT][PATCH] ext2 directories in pagecache

Marko Kreen
2000-09-26T22:16:20Z

On Tue, Sep 26, 2000 at 05:29:27PM -0400, Alexander Viro wrote:
> Comments and help in testing are more than welcome.

There is something fishy in ext2_empty_dir:

+ /* check for . and .. */
+ if (de->name[0] != '.')
+ goto not_empty;
+ if (!de->name[1]) {
+ if (de->inode !=
+ le32_to_cpu(inode->i_ino))
+ goto not_empty;
+ } else if (de->name[2])
+ goto not_empty;
+ else if (de->name[1] != '.')
+ goto not_empty;

--
marko