From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-188.mta0.migadu.com (out-188.mta0.migadu.com [91.218.175.188]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6728B2571DE for ; Thu, 11 Dec 2025 08:14:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.188 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765440844; cv=none; b=nb1Izsscy5Sl61Q8K25TNoJu/xjzcFpU9wNFBdnYxrInudABJ+S0uUccG+qSK3Eij+LiGu07UcBz4OHqz67afe/jupHWvFFarZKePBfIusyhduj8aUwk7fM1Pv6zCf7x8jVR0PUje3yu2maDJot7xRSxbbSmPa/RiKbqyJ4wXrw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765440844; c=relaxed/simple; bh=fJ2g9hPkmRVKfMpeSNcAt/a7ffX4Er2JIvATZJlkwmA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=iMNK5LNucmEzWPRWzzFQ189huPFydemXNaqQWXJmq4dHoYSvCNu7YirggzSpjxlYqtkZ2NTNITIjyWFVcnFTgUVKOwUOvhvQi4wZFdLxM5MPLnjwgBh13Cr0KFLE/EQayEa+FXR4/0Lx0fcUSvf+jo2781hYgYy5xBYqX94iOA4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=ffgZQ8Hw; arc=none smtp.client-ip=91.218.175.188 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="ffgZQ8Hw" Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1765440840; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qJGCV9qJPJBuRBazn5Hd7AYqiLdR0AePhlgsjhsk1+s=; b=ffgZQ8Hwx5r4cC1sByhp4OSCoSBCGsnfFbfoHGb3AlidbyUFFB+XQyKQuHGT0iwx51Wm19 hcTBJtb7GBW/1K8UQZKuGAoouXxoSvbR7BVfFl+0CfTAd5q8WrhLZM82LZkRWM4CvSKrzV yla0S3AGaIHN97/IUUTrvpGmIfI115I= Date: Thu, 11 Dec 2025 16:13:47 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH] mm: zswap: delete unused acomp->is_sleepable To: Johannes Weiner , Andrew Morton Cc: Yosry Ahmed , Nhat Pham , linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20251211025645.820517-1-hannes@cmpxchg.org> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Chengming Zhou In-Reply-To: <20251211025645.820517-1-hannes@cmpxchg.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 2025/12/11 10:56, Johannes Weiner wrote: > This hasn't been used since 7d4c9629b74f ("mm: zswap: use object > read/write APIs instead of object mapping APIs"). Drop it. > > Signed-off-by: Johannes Weiner Reviewed-by: Chengming Zhou Thanks. > --- > mm/zswap.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/mm/zswap.c b/mm/zswap.c > index 5d0f8b13a958..84797ed4d3f5 100644 > --- a/mm/zswap.c > +++ b/mm/zswap.c > @@ -141,7 +141,6 @@ struct crypto_acomp_ctx { > struct crypto_wait wait; > u8 *buffer; > struct mutex mutex; > - bool is_sleepable; > }; > > /* > @@ -781,7 +780,6 @@ static int zswap_cpu_comp_prepare(unsigned int cpu, struct hlist_node *node) > > acomp_ctx->buffer = buffer; > acomp_ctx->acomp = acomp; > - acomp_ctx->is_sleepable = acomp_is_async(acomp); > acomp_ctx->req = req; > mutex_unlock(&acomp_ctx->mutex); > return 0;