nfs: fix getattr hint extracting checks
commitad6ac596c50f503658e30bd01d66542084d2fe11
authorJosef 'Jeff' Sipek <jeffpc@josefsipek.net>
Sat, 1 Dec 2018 14:43:33 +0000 (1 09:43 -0500)
committerJosef 'Jeff' Sipek <jeffpc@josefsipek.net>
Sat, 1 Dec 2018 14:43:33 +0000 (1 09:43 -0500)
tree78456823908973e83e6ba4f9453e216893f8a250
parent701931ca124014910c15d2c88b8d0878ef18b59f
nfs: fix getattr hint extracting checks

There were two issues here:

1. (mask == (mask & const)) is just a convoluted way to check that no other
   bits are set
2. (mask | const) is always true for non-zero constants
kernel/fs/nfs/nfs_vnops.c