nfs: fix undefined behavior in nfs_block_bits()

Shifting *signed int* typed constant 1 left by 31 bits causes undefined
behavior. Specify the correct *unsigned long* type by using 1UL instead.

Found by Linux Verification Center ( with the Svace static
analysis tool.

Signed-off-by: Sergey Shtylyov <>
Reviewed-by: Benjamin Coddington <>
Signed-off-by: Trond Myklebust <>
1 file changed