aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/exportfs/expfs.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/exportfs/expfs.c b/fs/exportfs/expfs.c
index d32ead9026f0..b33b9c4deea0 100644
--- a/fs/exportfs/expfs.c
+++ b/fs/exportfs/expfs.c
@@ -228,14 +228,14 @@ reconnect_path(struct vfsmount *mnt, struct dentry *target_dir, char *nbuf)
228 int err = -ESTALE; 228 int err = -ESTALE;
229 229
230 while (target_dir->d_flags & DCACHE_DISCONNECTED) { 230 while (target_dir->d_flags & DCACHE_DISCONNECTED) {
231 struct dentry *pd = find_disconnected_root(target_dir); 231 struct dentry *dentry = find_disconnected_root(target_dir);
232 232
233 BUG_ON(pd == mnt->mnt_sb->s_root); 233 BUG_ON(dentry == mnt->mnt_sb->s_root);
234 234
235 if (!IS_ROOT(pd)) { 235 if (!IS_ROOT(dentry)) {
236 /* must have found a connected parent - great */ 236 /* must have found a connected parent - great */
237 clear_disconnected(target_dir); 237 clear_disconnected(target_dir);
238 dput(pd); 238 dput(dentry);
239 break; 239 break;
240 } else { 240 } else {
241 struct dentry *parent; 241 struct dentry *parent;
@@ -243,7 +243,7 @@ reconnect_path(struct vfsmount *mnt, struct dentry *target_dir, char *nbuf)
243 * We have hit the top of a disconnected path, try to 243 * We have hit the top of a disconnected path, try to
244 * find parent and connect. 244 * find parent and connect.
245 */ 245 */
246 parent = reconnect_one(mnt, pd, nbuf); 246 parent = reconnect_one(mnt, dentry, nbuf);
247 if (!parent) 247 if (!parent)
248 goto out_reconnected; 248 goto out_reconnected;
249 if (IS_ERR(parent)) { 249 if (IS_ERR(parent)) {
@@ -252,7 +252,7 @@ reconnect_path(struct vfsmount *mnt, struct dentry *target_dir, char *nbuf)
252 } 252 }
253 dput(parent); 253 dput(parent);
254 } 254 }
255 dput(pd); 255 dput(dentry);
256 } 256 }
257 257
258 if (target_dir->d_flags & DCACHE_DISCONNECTED) { 258 if (target_dir->d_flags & DCACHE_DISCONNECTED) {