summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2013-10-18 03:42:35 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2013-11-09 06:16:38 +0100
commitefbf201f7a0be7ffc6532e672fbccb0eed4f5de0 (patch)
tree235d947d83c55a31b760a29146024bdd962eb2a5 /fs
parentexportfs: move most of reconnect_path to helper function (diff)
downloadlinux-efbf201f7a0be7ffc6532e672fbccb0eed4f5de0.tar.xz
linux-efbf201f7a0be7ffc6532e672fbccb0eed4f5de0.zip
exportfs: better variable name
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>
Diffstat (limited to 'fs')
-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)
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(pd)) {
+ if (!IS_ROOT(dentry)) {
/* must have found a connected parent - great */
clear_disconnected(target_dir);
- dput(pd);
+ dput(dentry);
break;
} else {
struct dentry *parent;
@@ -243,7 +243,7 @@ reconnect_path(struct vfsmount *mnt, struct dentry *target_dir, char *nbuf)
* 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)) {
@@ -252,7 +252,7 @@ reconnect_path(struct vfsmount *mnt, struct dentry *target_dir, char *nbuf)
}
dput(parent);
}
- dput(pd);
+ dput(dentry);
}
if (target_dir->d_flags & DCACHE_DISCONNECTED) {