Commit 508720b7 authored by Bart Van Assche's avatar Bart Van Assche Committed by Carlos Llamas
Browse files

UPSTREAM: fs: Verify write lifetime constants at compile time



The code in fs/fcntl.c converts RWH_* constants to and from WRITE_LIFE_*
constants using casts. Verify at compile time that these casts will yield
the intended effect.

Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Suggested-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarJohannes Thumshirn <johannes.thumshirn@wdc.com>
Change-Id: I451094f2222b8d171cf6ead74ea317b512d3a664
Signed-off-by: default avatarBart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20240202203926.2478590-3-bvanassche@acm.org


Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
(cherry picked from commit e769779c
https: //git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git dev)
parent 57946f5e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment