forked from pool/openafs
cfa65eea8c
- update to openafs-1.8.11 - apply upstream patches for kernel 6.8 * 056a7a8.diff * 05ac614.diff * 073adec.diff * 0d9f6cf.diff * 0e983a9.diff * 112fb94.diff * 1e1bf8e.diff * 2056ce8.diff * 5312d06.diff * 67e48c8.diff * 6b20756.diff * 743d72f.diff * 7cae97b.diff * 81b910a.diff * 87ab04a.diff * 9f052c1.diff * a14a9ad.diff * a87845d.diff * aae8b00.diff * b77b304.diff * d1c89ac.diff * d9f3a2c.diff * db91384.diff * dffd0e1.diff * e0f425a.diff * e157f8f.diff * e428053.diff * ef7b8c5.diff * f5bafb0.diff * fca6fd9.diff OBS-URL: https://build.opensuse.org/request/show/1170220 OBS-URL: https://build.opensuse.org/package/show/filesystems/openafs?expand=0&rev=123
36 lines
1.2 KiB
Diff
36 lines
1.2 KiB
Diff
From fca6fd911e493a344c040a95ea4ab820e2828802 Mon Sep 17 00:00:00 2001
|
|
From: Andrew Deason <adeason@sinenomine.net>
|
|
Date: Thu, 28 Jun 2018 12:50:52 -0500
|
|
Subject: [PATCH] afs: Make afs_AllocDCache static
|
|
|
|
Nothing using afs_AllocDCache outside of afs_dcache.c. Declare the
|
|
function static, to ensure that nobody else uses it, and to maybe
|
|
allow for more compiler optimization.
|
|
|
|
Reviewed-on: https://gerrit.openafs.org/13226
|
|
Tested-by: BuildBot <buildbot@rampaginggeek.com>
|
|
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
|
|
(cherry picked from commit 4ab70de9641807bd06056f0c1ac79550453b9574)
|
|
|
|
Change-Id: I6fd9e31c4b2e862174402f731a77c91599893223
|
|
Reviewed-on: https://gerrit.openafs.org/15679
|
|
Tested-by: BuildBot <buildbot@rampaginggeek.com>
|
|
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
|
|
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
|
|
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
|
|
---
|
|
|
|
diff --git a/src/afs/afs_dcache.c b/src/afs/afs_dcache.c
|
|
index 3572f2f..46d0bdb 100644
|
|
--- a/src/afs/afs_dcache.c
|
|
+++ b/src/afs/afs_dcache.c
|
|
@@ -1674,7 +1674,7 @@
|
|
*
|
|
* \return The new dcache.
|
|
*/
|
|
-struct dcache *
|
|
+static struct dcache *
|
|
afs_AllocDCache(struct vcache *avc, afs_int32 chunk, afs_int32 lock,
|
|
struct VenusFid *ashFid)
|
|
{
|