mm: apply init protection
Signed-off-by: Adam W. Willis <return.of.octobot@gmail.com> Change-Id: I1a1928fec9efeb29203a94644388c3ca48e7d96e [TogoFire]: adapt to k5.4. Signed-off-by: TogoFire <togofire@mailfence.com>
This commit is contained in:
parent
d0dc26b405
commit
bcec04dde1
1 changed files with 4 additions and 0 deletions
|
@ -12,6 +12,7 @@
|
|||
#include <linux/blk-mq.h>
|
||||
#include <linux/blk-cgroup.h>
|
||||
#include <linux/debugfs.h>
|
||||
#include <linux/binfmts.h>
|
||||
|
||||
#include "blk.h"
|
||||
#include "blk-mq.h"
|
||||
|
@ -103,6 +104,9 @@ queue_ra_store(struct request_queue *q, const char *page, size_t count)
|
|||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
if (task_is_booster(current))
|
||||
ra_kb = SZ_128K;
|
||||
|
||||
q->backing_dev_info->ra_pages = ra_kb >> (PAGE_SHIFT - 10);
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue