|
@@ -389,7 +389,7 @@ static struct dentry *d_kill(struct dentry *dentry, struct dentry *parent)
|
|
* Inform try_to_ascend() that we are no longer attached to the
|
|
* Inform try_to_ascend() that we are no longer attached to the
|
|
* dentry tree
|
|
* dentry tree
|
|
*/
|
|
*/
|
|
- dentry->d_flags |= DCACHE_DISCONNECTED;
|
|
|
|
|
|
+ dentry->d_flags |= DCACHE_DENTRY_KILLED;
|
|
if (parent)
|
|
if (parent)
|
|
spin_unlock(&parent->d_lock);
|
|
spin_unlock(&parent->d_lock);
|
|
dentry_iput(dentry);
|
|
dentry_iput(dentry);
|
|
@@ -1048,7 +1048,7 @@ static struct dentry *try_to_ascend(struct dentry *old, int locked, unsigned seq
|
|
* or deletion
|
|
* or deletion
|
|
*/
|
|
*/
|
|
if (new != old->d_parent ||
|
|
if (new != old->d_parent ||
|
|
- (old->d_flags & DCACHE_DISCONNECTED) ||
|
|
|
|
|
|
+ (old->d_flags & DCACHE_DENTRY_KILLED) ||
|
|
(!locked && read_seqretry(&rename_lock, seq))) {
|
|
(!locked && read_seqretry(&rename_lock, seq))) {
|
|
spin_unlock(&new->d_lock);
|
|
spin_unlock(&new->d_lock);
|
|
new = NULL;
|
|
new = NULL;
|