Re: [PATCH] 2.2.18: d_move() with self-root dentries (Dentry Corruption!)

2000-11-23 Thread Neil Brown
On Tuesday November 21, [EMAIL PROTECTED] wrote: > This may be 2.2.18 material after all I wrote last night: > > Making nfsd's d_splice() compensate for d_move's limitations is not > > only a kludge, but also it harder to keep nfsd correct. > > someday, nfsd may not be the only creator of thi

[PATCH] 2.2.18: d_move() with self-root dentries (Dentry Corruption!)

2000-11-21 Thread Chip Salzenberg
This may be 2.2.18 material after all I wrote last night: > Making nfsd's d_splice() compensate for d_move's limitations is not > only a kludge, but also it harder to keep nfsd correct. > someday, nfsd may not be the only creator of this kind of dentry. Sure enough, there is just such a bug

[PATCH] 2.2.18: d_move() with self-root dentries

2000-11-21 Thread Chip Salzenberg
The d_move() function doesn't correctly handle dentries that have no parents (i.e. 'x->d_parent==x'). This patch lets it do so. Normally, the only parentless dentries are filesystem roots. However, the NFS server creates (temporary) parentless dentries whenever dentry pruning has deleted the de