aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2019-07-06 02:00:37 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2019-07-06 02:00:37 (GMT)
commita8f46b5afe1c0a83c3013a339e6aeccc2f37342d (patch)
tree83400e22faa4d383e7e0b385940790f796f0793e /fs
parent3f9c4dc63309286a6513a86aac35ffc445cb9d1a (diff)
parent3b2d4dcf71c4a91b420f835e52ddea8192300a3b (diff)
downloadkernel_replicant_linux-a8f46b5afe1c0a83c3013a339e6aeccc2f37342d.zip
kernel_replicant_linux-a8f46b5afe1c0a83c3013a339e6aeccc2f37342d.tar.gz
kernel_replicant_linux-a8f46b5afe1c0a83c3013a339e6aeccc2f37342d.tar.bz2
Merge tag 'nfsd-5.2-2' of git://linux-nfs.org/~bfields/linux
Pull nfsd fixes from Bruce Fields: "Two more quick bugfixes for nfsd: fixing a regression causing mount failures on high-memory machines and fixing the DRC over RDMA" * tag 'nfsd-5.2-2' of git://linux-nfs.org/~bfields/linux: nfsd: Fix overflow causing non-working mounts on 1 TB machines svcrdma: Ignore source port when computing DRC hash
Diffstat (limited to 'fs')
-rw-r--r--fs/nfsd/nfs4state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index 618e660..1a0cdeb 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -1563,7 +1563,7 @@ static u32 nfsd4_get_drc_mem(struct nfsd4_channel_attrs *ca)
* Never use more than a third of the remaining memory,
* unless it's the only way to give this client a slot:
*/
- avail = clamp_t(int, avail, slotsize, total_avail/3);
+ avail = clamp_t(unsigned long, avail, slotsize, total_avail/3);
num = min_t(int, num, avail / slotsize);
nfsd_drc_mem_used += num * slotsize;
spin_unlock(&nfsd_drc_lock);