sdm660-common: rootdir: do not use absolute value for ZRAM size

Redmi Note 7 has variants with 3GB as well as for 4GB RAM.
So use 50% for ZRAM size instead of current 3GB for both.
Parameter 'max_comp_streams' is obsolete and should not be set.
Kernel currently uses always num of online CPUs.

Change-Id: Ib0157c7b4ba686a9597fd33d268dace4e0171da7
This commit is contained in:
Ivan Vecera 2021-04-14 09:40:34 +02:00 committed by OdSazib
parent 6ef4460f7f
commit 5d95e4db79
No known key found for this signature in database
GPG key ID: B678DBD07079B021
3 changed files with 3 additions and 3 deletions

View file

@ -11,7 +11,7 @@
# Non-A/B fstab.qcom variant
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
/dev/block/zram0 none swap defaults zramsize=2415919104,max_comp_streams=8
/dev/block/zram0 none swap defaults zramsize=50%
/dev/block/bootdevice/by-name/userdata /data ext4 nodev,noatime,nosuid,barrier=1,noauto_da_alloc,discard,lazytime wait,check,encryptable=footer,quota,reservedsize=128M
/dev/block/bootdevice/by-name/userdata /data f2fs nodev,noatime,nosuid,nodiratime,fsync_mode=nobarrier,background_gc=on wait,check,encryptable=footer,quota,reservedsize=128M
/devices/soc/c084000.sdhci/mmc_host* /storage/sdcard1 auto nodev,nosuid wait,voldmanaged=sdcard1:auto,encryptable=userdata

View file

@ -10,7 +10,7 @@
# Non-A/B fstab.qcom variant
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
/dev/block/zram0 none swap defaults zramsize=2415919104,max_comp_streams=8
/dev/block/zram0 none swap defaults zramsize=50%
/dev/block/bootdevice/by-name/system / ext4 ro,barrier=1,discard wait,avb
/dev/block/bootdevice/by-name/userdata /data ext4 nosuid,nodev,barrier=1,noauto_da_alloc,noatime,lazytime wait,resize,check,fileencryption=ice,crashcheck,quota,reservedsize=128M
/dev/block/bootdevice/by-name/misc /misc emmc defaults defaults

View file

@ -7,7 +7,7 @@
# A/B fstab.qcom variant
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
/dev/block/zram0 none swap defaults zramsize=2415919104,max_comp_streams=8
/dev/block/zram0 none swap defaults zramsize=50%
/dev/block/bootdevice/by-name/system / ext4 ro,barrier=1,discard wait,slotselect,verify
/dev/block/bootdevice/by-name/userdata /data ext4 nodev,noatime,nosuid,barrier=1,noauto_da_alloc,discard,lazytime wait,check,encryptable=footer,quota,formattable,length=-16384
/dev/block/bootdevice/by-name/userdata /data f2fs nodev,noatime,nosuid,inline_xattr,reserve_root=32768,resgid=1065,background_gc=on wait,check,encryptable=footer,quota,formattable,length=-16384