mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
ANDROID: Incremental fs: Initialize mount options correctly
report_uid was not being initialized, leading to random behavior Bug: 172480517 Test: incfs_test passes Signed-off-by: Paul Lawrence <paullawrence@google.com> Change-Id: Ib121136d6f570f99e9060bdde9aa43ff2995514e
This commit is contained in:
@@ -181,12 +181,13 @@ static int parse_options(struct mount_options *opts, char *str)
|
||||
if (opts == NULL)
|
||||
return -EFAULT;
|
||||
|
||||
opts->read_timeout_ms = 1000; /* Default: 1s */
|
||||
opts->readahead_pages = 10;
|
||||
opts->read_log_pages = 2;
|
||||
opts->read_log_wakeup_count = 10;
|
||||
opts->no_backing_file_cache = false;
|
||||
opts->no_backing_file_readahead = false;
|
||||
*opts = (struct mount_options) {
|
||||
.read_timeout_ms = 1000, /* Default: 1s */
|
||||
.readahead_pages = 10,
|
||||
.read_log_pages = 2,
|
||||
.read_log_wakeup_count = 10,
|
||||
};
|
||||
|
||||
if (str == NULL || *str == 0)
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user