From 16c0dbd7961fb599ed9f29d700d1a713902bd96d Mon Sep 17 00:00:00 2001 From: Mark Vitale Date: Thu, 30 Nov 2017 16:51:32 -0500 Subject: [PATCH] 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 Reviewed-by: Benjamin Kaduk Tested-by: BuildBot (cherry picked from commit 0678ad26b6069040a6ea86866fb59ef5968ea343) Change-Id: If0f9516201cea747a753db04ba2d0e2cac69971b Reviewed-on: https://gerrit.openafs.org/12849 Tested-by: BuildBot Reviewed-by: Benjamin Kaduk --- src/afs/LINUX/osi_vnodeops.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c index a9394ee376..d8dfd93e9a 100644 --- a/src/afs/LINUX/osi_vnodeops.c +++ b/src/afs/LINUX/osi_vnodeops.c @@ -917,17 +917,10 @@ canonical_dentry(struct inode *ip) vcp->target_link = ret; -# ifdef HAVE_DCACHE_LOCK if (ret) { afs_linux_dget(ret); } afs_d_alias_unlock(ip); -# else - if (ret) { - afs_linux_dget(ret); - } - afs_d_alias_unlock(ip); -# endif return ret; }