ANDROID: GKI: Add ANDROID_OEM_DATA(1) in struct request to support pre-read feature.

To implement the foreshow list in the kernel, we need to incorporate additional flags into the request. However, the rq_flags field currently has only 5 remaining bits. Considering the potential future usage by Android or upstream, we propose the addition of an OEM data field to prevent conflicts down the line.

Bug: 339338545

Change-Id: I965450a06a365b53ae82d11bd678983c6c286f1a
Signed-off-by: LongPing Wei <weilongping@oppo.com>
(cherry picked from commit 943f2856e40751d7971de33b6d75c7a23df7139d)
This commit is contained in:
LongPing Wei
2024-05-08 11:58:12 +08:00
committed by rui chen
parent 74ae8d16a9
commit b13efbc5c5
+2
View File
@@ -208,6 +208,8 @@ struct request {
*/
rq_end_io_fn *end_io;
void *end_io_data;
ANDROID_OEM_DATA(1);
};
static inline enum req_op req_op(const struct request *req)