Replace another unhelpful acronym.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
int err = -ESTALE;
while (target_dir->d_flags & DCACHE_DISCONNECTED) {
int err = -ESTALE;
while (target_dir->d_flags & DCACHE_DISCONNECTED) {
- struct dentry *pd = find_disconnected_root(target_dir);
+ struct dentry *dentry = find_disconnected_root(target_dir);
- BUG_ON(pd == mnt->mnt_sb->s_root);
+ BUG_ON(dentry == mnt->mnt_sb->s_root);
+ if (!IS_ROOT(dentry)) {
/* must have found a connected parent - great */
clear_disconnected(target_dir);
/* must have found a connected parent - great */
clear_disconnected(target_dir);
break;
} else {
struct dentry *parent;
break;
} else {
struct dentry *parent;
* We have hit the top of a disconnected path, try to
* find parent and connect.
*/
* We have hit the top of a disconnected path, try to
* find parent and connect.
*/
- parent = reconnect_one(mnt, pd, nbuf);
+ parent = reconnect_one(mnt, dentry, nbuf);
if (!parent)
goto out_reconnected;
if (IS_ERR(parent)) {
if (!parent)
goto out_reconnected;
if (IS_ERR(parent)) {
}
if (target_dir->d_flags & DCACHE_DISCONNECTED) {
}
if (target_dir->d_flags & DCACHE_DISCONNECTED) {