From nobody Fri Dec 19 15:03:43 2025 Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172]) (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 7A85E29B8E0; Sat, 6 Dec 2025 03:09:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.241.56.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764990572; cv=none; b=Oir3jwF+EKZjis8abx9d2pt7DrYvcuPtv6bicqqr5Iw1F0L+mj8XtJk7grDuBBvwlRCbSuYknN1DLgIALStx13t3jiGo64osBc8OYreCne4ha5wJ4TkjQPqdV0ZRi6aE/ocffRUApfMm48st0DwspxOWeGtPc5ksjcQiHHRbGOU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764990572; c=relaxed/simple; bh=ZwWMNc0jIccxD47ADxeC9Ru0lObhdgw3kfExPBKkTNs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ki8V7twgVtTAAz3qv922ZDcX4bMbx6bpJUyF2rjKSJiO6f+OqHEt6NIxpU1DGzywInihz5XHV8aL2JaNIdPuzd8SDFLQhFMeSd1NVVAjySU13dfppZL4mIFRU1yUxbMzRAHs4qkDcdJLmSAJ0iNWGmpK6BdU3wowH1gSZJRiX+w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=pankajraghav.com; arc=none smtp.client-ip=80.241.56.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pankajraghav.com Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4dNYB91xC6z9tqH; Sat, 6 Dec 2025 04:09:21 +0100 (CET) From: Pankaj Raghav To: Suren Baghdasaryan , Mike Rapoport , David Hildenbrand , Ryan Roberts , Michal Hocko , Lance Yang , Lorenzo Stoakes , Baolin Wang , Dev Jain , Barry Song , Andrew Morton , Nico Pache , Zi Yan , Vlastimil Babka , "Liam R . Howlett" , Jens Axboe Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, mcgrof@kernel.org, gost.dev@samsung.com, kernel@pankajraghav.com, tytso@mit.edu, Pankaj Raghav Subject: [RFC v2 3/3] blkdev: remove CONFIG_TRANSPARENT_HUGEPAGES dependency for LBS devices Date: Sat, 6 Dec 2025 04:08:58 +0100 Message-ID: <20251206030858.1418814-4-p.raghav@samsung.com> In-Reply-To: <20251206030858.1418814-1-p.raghav@samsung.com> References: <20251206030858.1418814-1-p.raghav@samsung.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Now that dependency between CONFIG_TRANSPARENT_HUGEPAGES and large folios are removed, enable LBS devices even when THP config is disabled. Signed-off-by: Pankaj Raghav --- include/linux/blkdev.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 70b671a9a7f7..b6379d73f546 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -270,16 +270,11 @@ static inline dev_t disk_devt(struct gendisk *disk) return MKDEV(disk->major, disk->first_minor); } =20 -#ifdef CONFIG_TRANSPARENT_HUGEPAGE /* * We should strive for 1 << (PAGE_SHIFT + MAX_PAGECACHE_ORDER) * however we constrain this to what we can validate and test. */ #define BLK_MAX_BLOCK_SIZE SZ_64K -#else -#define BLK_MAX_BLOCK_SIZE PAGE_SIZE -#endif - =20 /* blk_validate_limits() validates bsize, so drivers don't usually need to= */ static inline int blk_validate_block_size(unsigned long bsize) --=20 2.50.1