Skip to content

Commit

Permalink
Restore read_ahead_kb to r/w status in line with Linux and AOSP.
Browse files Browse the repository at this point in the history
See: Documentation/block/queue-sysfs.txt

There's probably a reason that Samsung change this to r/o.
  • Loading branch information
ianmacd authored and flar2 committed Jan 4, 2019
1 parent 693d261 commit fc85aa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block/blk-sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,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,
};
Expand Down

0 comments on commit fc85aa0

Please sign in to comment.