block: Restore original read_ahead_kb mode
authorLuK1337 <priv.luk@gmail.com>
Tue, 24 Sep 2019 14:53:33 +0000 (16:53 +0200)
committerMichael Benedict <michaelbt@live.com>
Sat, 12 Oct 2019 11:54:31 +0000 (22:54 +1100)
* 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,
 };