Files
kernel_xiaomi_mt6781/include/linux
Alessio Balsini 2b63db5336 BACKPORT: 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.

(cherry picked from commit ce71bfea207b4d7c21d36f24ec37618ffcea1da8)
Suggested-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Change-Id: Ib6316ae5cb3f8a14fabef5492e79783c9e6d3c4d
Signed-off-by: Alessio Balsini <balsini@google.com>
2025-10-17 23:09:04 +00:00
..
2025-09-20 03:23:38 +01:00
2025-10-12 13:52:33 +01:00
2022-10-26 13:19:32 +02:00
2022-12-17 00:25:35 +02:00
2023-08-08 19:49:17 +02:00
2021-12-08 08:50:13 +01:00
2021-01-30 13:32:12 +01:00
2021-08-27 15:24:34 +02:00
2021-03-05 07:01:18 +01:00
2022-08-25 11:15:23 +02:00
2020-09-09 19:48:58 +02:00
2021-06-30 19:17:14 +02:00
2023-06-21 15:39:57 +02:00
2025-09-22 10:17:51 +02:00
2020-06-16 12:51:47 -07:00
2023-02-22 12:28:07 +00:00
2021-12-15 13:45:50 +08:00
2025-09-16 13:55:10 +02:00
2025-09-20 03:21:09 +01:00
2023-11-30 09:36:03 +00:00
2023-10-25 11:16:20 +02:00
2021-01-29 02:10:02 +08:00
2021-12-14 10:18:04 +01:00
2023-05-18 15:51:07 +00:00
2021-12-15 13:45:50 +08:00
2024-02-23 08:12:39 +01:00