mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
LINUX: consolidate duplicate code in canonical_dentry
The two stanzas for HAVE_DCACHE_LOCK are now identical;
remove the preprocessor conditionals and duplicate code.
No functional change should be incurred by this commit.
Reviewed-on: https://gerrit.openafs.org/12791
Reviewed-by: Andrew Deason <adeason@dson.org>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
(cherry picked from commit 0678ad26b6
)
Change-Id: If0f9516201cea747a753db04ba2d0e2cac69971b
Reviewed-on: https://gerrit.openafs.org/12849
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
This commit is contained in:
parent
c42dea8e02
commit
16c0dbd796
@ -917,17 +917,10 @@ canonical_dentry(struct inode *ip)
|
|||||||
|
|
||||||
vcp->target_link = ret;
|
vcp->target_link = ret;
|
||||||
|
|
||||||
# ifdef HAVE_DCACHE_LOCK
|
|
||||||
if (ret) {
|
if (ret) {
|
||||||
afs_linux_dget(ret);
|
afs_linux_dget(ret);
|
||||||
}
|
}
|
||||||
afs_d_alias_unlock(ip);
|
afs_d_alias_unlock(ip);
|
||||||
# else
|
|
||||||
if (ret) {
|
|
||||||
afs_linux_dget(ret);
|
|
||||||
}
|
|
||||||
afs_d_alias_unlock(ip);
|
|
||||||
# endif
|
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user