block: Restore original read_ahead_kb mode
authorLuK1337 <priv.luk@gmail.com>
Tue, 24 Sep 2019 14:53:33 +0000 (16:53 +0200)
committerivanmeler <i_ivan@windowslive.com>
Wed, 13 Apr 2022 21:14:01 +0000 (21:14 +0000)
* Apex isn't able to write to it without S_IWUSR.

Change-Id: I374b4acb3239bf1f3ab2109e4391671c85131be5

block/blk-sysfs.c

index 5d453f25cd6bb36b8eba920c165b34ccc99570fc..e140cc487ce11349ff1917e4e866eccf0a18106c 100644 (file)
@@ -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,
 };