pub fn small_files_access_priority_function(access_count: usize, size: usize) -> usize {
    match usize::checked_mul(
        usize::checked_div(usize::MAX, size).unwrap_or(0),
        access_count,
    ) {
        Some(v) => v,
        None => usize::MAX, // If the multiplication overflows, then the file will have the maximum priority.
    }
}
/// Favor small files with respect to the number of times file was accessed.
///
/// The smaller the file, the higher priority it will have.
/// Does take into account the number of accesses the file has.
Favor small files with respect to the number of times file was accessed.
The smaller the file, the higher priority it will have.
Does take into account the number of accesses the file has.
Favor small files with respect to the number of times file was accessed . The smaller the file the higher priority it will have . Does take into account the number of accesses the file has .
pub fn small_files_access_priority_function(access_count: usize, size: usize) -> usize {
    match usize::checked_mul(
        usize::checked_div(usize::MAX, size).unwrap_or(0),
        access_count,
    ) {
        Some(v) => v,
        None => usize::MAX, // If the multiplication overflows, then the file will have the maximum priority.
    }
}
pub fn small_files_access_priority_function ( access_count : usize , size : usize ) -> usize { match usize :: checked_mul ( usize :: checked_div ( usize :: MAX , size ) . unwrap_or ( 0 ) , access_count , ) { Some ( v ) => v , None => usize :: MAX , // If the multiplication overflows, then the file will have the maximum priority. } }
Favor small files with respect to the number of times file was accessed.
Favor small files with respect to the number of times file was accessed .
access_count
usize
size
usize
access_count
usize
size
usize