Changeset 2659 for trunk/server/common
- Timestamp:
- Dec 22, 2014, 12:07:50 AM (10 years ago)
- Location:
- trunk/server/common/patches
- Files:
-
- 1 added
- 4 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/common/patches/openafs-afs_conn-overcounts.patch
r2649 r2659 1 From 368fff3b2fef5b559ed6da016e1e9f0413b55552Mon Sep 17 00:00:00 20011 From 54c0ee608f4afd2b178c9b60eabfc3564293d996 Mon Sep 17 00:00:00 2001 2 2 From: Andrew Deason <adeason@sinenomine.net> 3 3 Date: Sun, 14 Sep 2014 14:10:11 -0500 … … 37 37 38 38 Change-Id: I3a52f8ccef24f01d04c02db0a4b711405360e323 39 Reviewed-on: http://gerrit.openafs.org/11464 40 Reviewed-by: Benjamin Kaduk <kaduk@mit.edu> 41 Reviewed-by: Daria Brashear <shadow@your-file-system.com> 42 Tested-by: Benjamin Kaduk <kaduk@mit.edu> 43 Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com> 39 44 --- 40 45 src/afs/afs_bypasscache.c | 1 + … … 43 48 44 49 diff --git a/src/afs/afs_bypasscache.c b/src/afs/afs_bypasscache.c 45 index 744feb2..8fc600910064450 index f452638..4c6fb9a 100644 46 51 --- a/src/afs/afs_bypasscache.c 47 52 +++ b/src/afs/afs_bypasscache.c 48 @@ -6 37,6 +637,7 @@ afs_PrefetchNoCache(struct vcache *avc,53 @@ -621,6 +621,7 @@ afs_PrefetchNoCache(struct vcache *avc, 49 54 } else { 50 55 afs_warn("BYPASS: StartRXAFS_FetchData failed: %d\n", code); … … 55 60 if (code == 0) { 56 61 diff --git a/src/afs/afs_dcache.c b/src/afs/afs_dcache.c 57 index dc1e039..a156e2210064462 index 4a9edbd..338e8db 100644 58 63 --- a/src/afs/afs_dcache.c 59 64 +++ b/src/afs/afs_dcache.c 60 @@ -239 9,6 +2399,13 @@ afs_GetDCache(struct vcache *avc, afs_size_t abyte,65 @@ -2398,6 +2398,13 @@ afs_GetDCache(struct vcache *avc, afs_size_t abyte, 61 66 afs_PutDCache(tdc); 62 67 tdc = 0; … … 73 78 } 74 79 -- 75 2.2. 080 2.2.1 76 81 -
trunk/server/common/patches/openafs-d_splice_alias-reference.patch
r2655 r2659 1 From 1c576fdf9f05c6af7b5b029ba010a76bed48488eMon Sep 17 00:00:00 20011 From b1f23baecb2de72b44cda8bba27615c012a445f1 Mon Sep 17 00:00:00 2001 2 2 From: Marc Dionne <marc.dionne@your-file-system.com> 3 3 Date: Thu, 18 Dec 2014 08:43:22 -0500 … … 18 18 Change-Id: Id1786ac2227b4d8e0ae801fe59c15a0ecd975bed 19 19 --- 20 src/afs/LINUX/osi_vnodeops.c | 25 ++++++++++++++++++++++--- 21 1 file changed, 22 insertions(+), 3 deletions(-) 20 acinclude.m4 | 3 +++ 21 src/afs/LINUX/osi_vnodeops.c | 29 ++++++++++++++++++++++++++--- 22 2 files changed, 29 insertions(+), 3 deletions(-) 22 23 24 diff --git a/acinclude.m4 b/acinclude.m4 25 index 96adde0..19f7092 100644 26 --- a/acinclude.m4 27 +++ b/acinclude.m4 28 @@ -984,6 +984,9 @@ case $AFS_SYSNAME in *_linux* | *_umlinux*) 29 AC_CHECK_LINUX_FUNC([hlist_unhashed], 30 [#include <linux/list.h>], 31 [hlist_unhashed(0);]) 32 + AC_CHECK_LINUX_FUNC([ihold], 33 + [#include <linux/fs.h>], 34 + [ihold(NULL);]) 35 AC_CHECK_LINUX_FUNC([i_size_read], 36 [#include <linux/fs.h>], 37 [i_size_read(NULL);]) 23 38 diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c 24 index b2ab9d5.. 3723cf810064439 index b2ab9d5..cedfef6 100644 25 40 --- a/src/afs/LINUX/osi_vnodeops.c 26 41 +++ b/src/afs/LINUX/osi_vnodeops.c 27 @@ -1612,6 +1612,1 3@@ afs_linux_lookup(struct inode *dip, struct dentry *dp)42 @@ -1612,6 +1612,17 @@ afs_linux_lookup(struct inode *dip, struct dentry *dp) 28 43 ip->i_flags |= S_AUTOMOUNT; 29 44 #endif … … 34 49 + */ 35 50 + if (ip) 51 +#ifdef HAVE_LINUX_IHOLD 52 + ihold(ip); 53 +#else 36 54 + igrab(ip); 55 +#endif 37 56 + 38 57 newdp = d_splice_alias(ip, dp); 39 58 40 59 done: 41 @@ -1625,14 +163 2,26 @@ afs_linux_lookup(struct inode *dip, struct dentry *dp)60 @@ -1625,14 +1636,26 @@ afs_linux_lookup(struct inode *dip, struct dentry *dp) 42 61 * d_splice_alias can return an error (EIO) if there is an existing 43 62 * connected directory alias for this dentry.
Note: See TracChangeset
for help on using the changeset viewer.