ovl: use simpler function to convert iocb to rw flags
authorAmir Goldstein <amir73il@gmail.com>
Wed, 6 Sep 2023 07:52:13 +0000 (10:52 +0300)
committerAmir Goldstein <amir73il@gmail.com>
Mon, 30 Oct 2023 22:12:54 +0000 (00:12 +0200)
commitdb5b5e83eee46ec5e3d685282c9e4f38946cb0ea
treeed9bb0ca311b88e582fed813a3a10b0e7c081281
parent14ab6d425e80674b6a0145f05719b11e82e64824
ovl: use simpler function to convert iocb to rw flags

Overlayfs implements its own function to translate iocb flags into rw
flags, so that they can be passed into another vfs call.

With commit ce71bfea207b4 ("fs: align IOCB_* flags with RWF_* flags")
Jens created a 1:1 matching between the iocb flags and rw flags,
simplifying the conversion.

Signed-off-by: Alessio Balsini <balsini@android.com>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
fs/overlayfs/file.c