Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cf2ef288 authored by Nikhilesh Reddy's avatar Nikhilesh Reddy
Browse files

mtd: Collect bad block count for ecc stats lazily.



Normally bad block counts for ECC stats are collected during boot time.
This can be done lazily when the ECCGETSTATS ioctl is invoked on the
partition. This can significantly decrease boot time, depending on the
size of the partition. Also rescanning on every ioctl invocation helps
in having the latest bad block count rather than depending on the count
that is collected during boot.

NOTE: This patch was missed during the kernel upgrade. Not sure why but
before this can be merged, it needs to validated on the 3.18 kernel first.

Change-Id: I43d7a769a1d4ef769823d0b5bbe132adb474f892
Signed-off-by: default avatarMurali Palnati <palnatim@codeaurora.org>
Signed-off-by: default avatarKrishna Konda <kkonda@codeaurora.org>
Signed-off-by: default avatarNikhilesh Reddy <reddyn@codeaurora.org>
parent 6cb8923f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment