]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: clean up sparse endianness warnings in nfscache.c
authorJeff Layton <jlayton@primarydata.com>
Tue, 17 Jun 2014 11:44:12 +0000 (07:44 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 23 Jun 2014 15:31:37 +0000 (11:31 -0400)
commit0b115ad9f7d719eb6bac19ec8f87848c43c13670
tree01215db70352cd950d928c6895a2791b6c792df4
parent095c8c0ffd941332f73ed1450c787c86903b305b
nfsd: clean up sparse endianness warnings in nfscache.c

We currently hash the XID to determine a hash bucket to use for the
reply cache entry, which is fed into hash_32 without byte-swapping it.
Add __force to make sparse happy, and add some comments to explain
why.

Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfscache.c