nfsd: safer handling of corrupted c_type
authorJ. Bruce Fields <bfields@redhat.com>
Wed, 3 Jun 2020 15:12:32 +0000 (11:12 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 3 Jun 2020 15:12:32 +0000 (11:12 -0400)
commitc25bf185e57213b54ea0d632ac04907310993433
tree4086c70f23f26bcd29f07ab3d3600a8e230139ca
parent027690c75e8fd91b60a634d31c4891a6e39d45bd
nfsd: safer handling of corrupted c_type

This can only happen if there's a bug somewhere, so let's make it a WARN
not a printk.  Also, I think it's safest to ignore the corruption rather
than trying to fix it by removing a cache entry.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfscache.c