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 A2926171AA for ; Fri, 6 Sep 2024 00:55:08 +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=1725584111; cv=none; b=S1S8kS/3ayH3x7ZMMbQ310x6N6UKcrlbxuKiqvXGojpp6fOFKxkKn2TJFz5WxEb3rYxMeyNXgu8y+FBCntA5tCnN9rfG23GvHgGAbUJEkKAg6jVAfVB4EO9SO2fYfZMz9mIXyCTMNxxUNj5E9EZsBMFQEDY7ixSS/fhixhexHhw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725584111; c=relaxed/simple; bh=FLn/cukOX4SeKa90SfdBHJ56tMiMmaURkiMN8OdG8Fk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CHfV33A/RJkD7OwM76jxRvVKLNY/hI7TVz8LtF4fbOozYaulsdMy5zR3Z3F6EZCtqgNHKcPFP7jEobnA9lWyvMqKyFlTOiY/rKQ/xVblITU64jNusbBDtyaqsDzNMfsDgv4bzUbDyYiGLimWoOdp6Kih3cit+oqqPMKcFQaebjE= 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=B2J9FiM3; 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="B2J9FiM3" Date: Fri, 6 Sep 2024 00:55:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1725584106; 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: in-reply-to:in-reply-to:references:references; bh=Hh8Sh4c05lUd2Sx8bncesXBDE5sbepcbyHyt4/S6SCo=; b=B2J9FiM30kTeUfS4rvC/obJidLBvfgOoDhFHWZCpDBXOdRuPGq8YjGbOO3ywvNTqZmhFfX Gfo0C9keX0Tmi7ef8MELaf6jJQs4F0vKBNj30gPhJEtnuaOmCzKgd41RAguD9hhOCh6xOb fbW6rtKW6ybHOpOMrRNGErTebycjyps= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Roman Gushchin To: Christian Brauner Cc: Vlastimil Babka , Jens Axboe , Jann Horn , Linus Torvalds , Mike Rapoport , Kees Cook , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Hyeonggon Yoo <42.hyeyoo@gmail.com>, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v4 09/17] slab: remove rcu_freeptr_offset from struct kmem_cache Message-ID: References: <20240905-work-kmem_cache_args-v4-0-ed45d5380679@kernel.org> <20240905-work-kmem_cache_args-v4-9-ed45d5380679@kernel.org> Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240905-work-kmem_cache_args-v4-9-ed45d5380679@kernel.org> X-Migadu-Flow: FLOW_OUT On Thu, Sep 05, 2024 at 09:56:52AM +0200, Christian Brauner wrote: > Pass down struct kmem_cache_args to calculate_sizes() so we can use > args->{use}_freeptr_offset directly. This allows us to remove > ->rcu_freeptr_offset from struct kmem_cache. > > Reviewed-by: Kees Cook > Reviewed-by: Jens Axboe > Reviewed-by: Mike Rapoport (Microsoft) > Reviewed-by: Vlastimil Babka > Signed-off-by: Christian Brauner Reviewed-by: Roman Gushchin