From: LuK1337 Date: Tue, 24 Sep 2019 14:53:33 +0000 (+0200) Subject: block: Restore original read_ahead_kb mode X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7a4e41810bc68748d8bd03ccab1902a227784827;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git block: Restore original read_ahead_kb mode * Apex isn't able to write to it without S_IWUSR. Change-Id: I374b4acb3239bf1f3ab2109e4391671c85131be5 --- diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c index 5d453f25cd6b..e140cc487ce1 100644 --- a/block/blk-sysfs.c +++ b/block/blk-sysfs.c @@ -355,7 +355,7 @@ static struct queue_sysfs_entry queue_requests_entry = { }; static struct queue_sysfs_entry queue_ra_entry = { - .attr = {.name = "read_ahead_kb", .mode = S_IRUGO }, + .attr = {.name = "read_ahead_kb", .mode = S_IRUGO | S_IWUSR }, .show = queue_ra_show, .store = queue_ra_store, };