diff options
author | Jens Axboe <axboe@kernel.dk> | 2020-08-31 12:08:10 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-09-30 20:32:33 -0600 |
commit | ce71bfea207b4d7c21d36f24ec37618ffcea1da8 (patch) | |
tree | f762d39763e2697df3e24c523234f8826e80db44 /fs/io_uring.c | |
parent | e35afcf91230238dc27f98d1cd7cb787474b28cb (diff) | |
download | lwn-ce71bfea207b4d7c21d36f24ec37618ffcea1da8.tar.gz lwn-ce71bfea207b4d7c21d36f24ec37618ffcea1da8.zip |
fs: align IOCB_* flags with RWF_* flags
We have a set of flags that are shared between the two and inherired
in kiocb_set_rw_flags(), but we check and set these individually.
Reorder the IOCB flags so that the bottom part of the space is synced
with the RWF flag space, and then we can do them all in one mask and
set operation.
The only exception is RWF_SYNC, which needs to mark IOCB_SYNC and
IOCB_DSYNC. Do that one separately.
This shaves 15 bytes of text from kiocb_set_rw_flags() for me.
Suggested-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io_uring.c')
0 files changed, 0 insertions, 0 deletions