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

Commit d5b96952 authored by Noctis Ackerman's avatar Noctis Ackerman Committed by Andreas Schneider
Browse files

fs: sdfat: Fix frag_ratio formula



When there is no full au in AMAP, if we use the number of non-clean au
divides fsi->used_clusters * CLUS_PER_AU(sb), the frag_ratio is always
smaller than (or equal with) 100%, which is not right.

Actually, frag_ratio should be the the ratio that non-clean aus divides
the number of aus if all used_clusters are contiguous.

Signed-off-by: default avatarNoctis Ackerman <noctis.akm@gmail.com>
parent 46b83113
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