Re: [PATCH 1/2] zram: split memory-tracking and ac-time tracking

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/15/23 03:42, Sergey Senozhatsky wrote:
> @@ -293,8 +301,9 @@ static void mark_idle(struct zram *zram, ktime_t cutoff)
>  		zram_slot_lock(zram, index);
>  		if (zram_allocated(zram, index) &&
>  				!zram_test_flag(zram, index, ZRAM_UNDER_WB)) {
> -#ifdef CONFIG_ZRAM_MEMORY_TRACKING
> -			is_idle = !cutoff || ktime_after(cutoff, zram->table[index].ac_time);
> +#ifdef ZRAM_TRACK_ENTRY_ACTIME

CONFIG_ZRAM_TRACK_ENTRY_ACTIME?

> +			is_idle = !cutoff || ktime_after(cutoff,
> +							 zram->table[index].ac_time);
>  #endif
>  			if (is_idle)
>  				zram_set_flag(zram, index, ZRAM_IDLE);




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux