|
@@ -2093,10 +2093,10 @@ struct dentry *d_lookup(const struct dentry *parent, const struct qstr *name)
|
|
|
struct dentry *dentry;
|
|
|
unsigned seq;
|
|
|
|
|
|
- do {
|
|
|
- seq = read_seqbegin(&rename_lock);
|
|
|
- dentry = __d_lookup(parent, name);
|
|
|
- if (dentry)
|
|
|
+ do {
|
|
|
+ seq = read_seqbegin(&rename_lock);
|
|
|
+ dentry = __d_lookup(parent, name);
|
|
|
+ if (dentry)
|
|
|
break;
|
|
|
} while (read_seqretry(&rename_lock, seq));
|
|
|
return dentry;
|