iomap: use an unsigned type for IOMAP_DIO_* defines
authorJens Axboe <axboe@kernel.dk>
Sat, 22 Jul 2023 16:28:37 +0000 (10:28 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Aug 2023 23:32:32 +0000 (17:32 -0600)
commit44842f647346cac4063b2bb8e9476fad09e363e7
tree73c7a0cf7c8e9c9de7dd56d618a86c99e562a30c
parent3486237c6fe8d0e5024f9c48bfe73843b1bd8284
iomap: use an unsigned type for IOMAP_DIO_* defines

IOMAP_DIO_DIRTY shifts by 31 bits, which makes UBSAN unhappy. Clean up
all the defines by making the shifted value an unsigned value.

Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reported-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/iomap/direct-io.c