aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/nfs4state.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index e9c3afe4b5d3..4e1d7268b004 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -41,7 +41,7 @@
41#include <linux/ratelimit.h> 41#include <linux/ratelimit.h>
42#include <linux/sunrpc/svcauth_gss.h> 42#include <linux/sunrpc/svcauth_gss.h>
43#include <linux/sunrpc/addr.h> 43#include <linux/sunrpc/addr.h>
44#include <linux/hash.h> 44#include <linux/jhash.h>
45#include "xdr4.h" 45#include "xdr4.h"
46#include "xdr4cb.h" 46#include "xdr4cb.h"
47#include "vfs.h" 47#include "vfs.h"
@@ -594,7 +594,7 @@ static int delegation_blocked(struct knfsd_fh *fh)
594 } 594 }
595 spin_unlock(&blocked_delegations_lock); 595 spin_unlock(&blocked_delegations_lock);
596 } 596 }
597 hash = arch_fast_hash(&fh->fh_base, fh->fh_size, 0); 597 hash = jhash(&fh->fh_base, fh->fh_size, 0);
598 if (test_bit(hash&255, bd->set[0]) && 598 if (test_bit(hash&255, bd->set[0]) &&
599 test_bit((hash>>8)&255, bd->set[0]) && 599 test_bit((hash>>8)&255, bd->set[0]) &&
600 test_bit((hash>>16)&255, bd->set[0])) 600 test_bit((hash>>16)&255, bd->set[0]))
@@ -613,7 +613,7 @@ static void block_delegations(struct knfsd_fh *fh)
613 u32 hash; 613 u32 hash;
614 struct bloom_pair *bd = &blocked_delegations; 614 struct bloom_pair *bd = &blocked_delegations;
615 615
616 hash = arch_fast_hash(&fh->fh_base, fh->fh_size, 0); 616 hash = jhash(&fh->fh_base, fh->fh_size, 0);
617 617
618 spin_lock(&blocked_delegations_lock); 618 spin_lock(&blocked_delegations_lock);
619 __set_bit(hash&255, bd->set[bd->new]); 619 __set_bit(hash&255, bd->set[bd->new]);