net: replace remaining users of arch_fast_hash with jhash
[firefly-linux-kernel-4.4.55.git] / fs / nfsd / nfs4state.c
index e9c3afe4b5d3c306a5dd61692ed34805ca661f7a..4e1d7268b004faff8f79730003757483689c715e 100644 (file)
@@ -41,7 +41,7 @@
 #include <linux/ratelimit.h>
 #include <linux/sunrpc/svcauth_gss.h>
 #include <linux/sunrpc/addr.h>
-#include <linux/hash.h>
+#include <linux/jhash.h>
 #include "xdr4.h"
 #include "xdr4cb.h"
 #include "vfs.h"
@@ -594,7 +594,7 @@ static int delegation_blocked(struct knfsd_fh *fh)
                }
                spin_unlock(&blocked_delegations_lock);
        }
-       hash = arch_fast_hash(&fh->fh_base, fh->fh_size, 0);
+       hash = jhash(&fh->fh_base, fh->fh_size, 0);
        if (test_bit(hash&255, bd->set[0]) &&
            test_bit((hash>>8)&255, bd->set[0]) &&
            test_bit((hash>>16)&255, bd->set[0]))
@@ -613,7 +613,7 @@ static void block_delegations(struct knfsd_fh *fh)
        u32 hash;
        struct bloom_pair *bd = &blocked_delegations;
 
-       hash = arch_fast_hash(&fh->fh_base, fh->fh_size, 0);
+       hash = jhash(&fh->fh_base, fh->fh_size, 0);
 
        spin_lock(&blocked_delegations_lock);
        __set_bit(hash&255, bd->set[bd->new]);