From patchwork Wed Dec 18 02:02:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luis Chamberlain X-Patchwork-Id: 13912879 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id CAB4CE77188 for ; Wed, 18 Dec 2024 02:02:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5CC426B0082; Tue, 17 Dec 2024 21:02:25 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 5318E6B0089; Tue, 17 Dec 2024 21:02:25 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1FDEA6B0088; Tue, 17 Dec 2024 21:02:25 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id EB51A6B0085 for ; Tue, 17 Dec 2024 21:02:24 -0500 (EST) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 967C6AF633 for ; Wed, 18 Dec 2024 02:02:24 +0000 (UTC) X-FDA: 82906429578.11.AB656DA Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) by imf06.hostedemail.com (Postfix) with ESMTP id B5FF7180013 for ; Wed, 18 Dec 2024 02:02:00 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b=GTMS2yoi; spf=none (imf06.hostedemail.com: domain of mcgrof@infradead.org has no SPF policy when checking 198.137.202.133) smtp.mailfrom=mcgrof@infradead.org; dmarc=fail reason="No valid SPF, DKIM not aligned (relaxed)" header.from=kernel.org (policy=quarantine) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1734487310; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=3kstiw8DGy+LZqa+lbGlsyzzHfy0quVH0jm/EBxZMLU=; b=rciXEX30qOmrPcNBqpbIhnkwpmlIpt/ZXSSkuw8oSW7nyBm3Nuyh7cdzHLfF5o6z81Vvx9 9eXgH2jjAMGW9e3RTvwGdXIBDgCesqwyAWxXyQO1wimdHTFFeX0v8ESbobfPfUWc3jgNdP oH6iN7LUncumqHPqnjTsD+FjzUOaryk= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b=GTMS2yoi; spf=none (imf06.hostedemail.com: domain of mcgrof@infradead.org has no SPF policy when checking 198.137.202.133) smtp.mailfrom=mcgrof@infradead.org; dmarc=fail reason="No valid SPF, DKIM not aligned (relaxed)" header.from=kernel.org (policy=quarantine) ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1734487310; a=rsa-sha256; cv=none; b=bd/aDsjpzjqJMWLSD85NsFpVfsNxrHaipQXM7UfnfMNMx0E5goQCVk5l8rIqDU5X2/RN4N atl+daa+LnWpi+RfmtEOKdIbwF/K7LX8e7aMPYZrXcYi0/kNS8iuBPDjcmc4F8KxclLQmf QToMHS/DHOl6pX4tGVeXy4IgujnYdT0= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=3kstiw8DGy+LZqa+lbGlsyzzHfy0quVH0jm/EBxZMLU=; b=GTMS2yoiwWY0Ifhn4wiYQbNRua 4KJQeIDN7HDu+Dw/9OXzs10OmrFL0N5PUjsfWlXeTnUq2J5xm5niDWNDsrjodyh9mHNfXl8r7kYZZ /+e6bS0hW9cRe6WljMPqgw3OZqwU5O/XhqyqnFElL+2nJ51U4kh3BeqB+r/d69iOW44m0vFDcUVPF Tpxm/D6Th3cazeRtI3tewMwLx4VvY/Pjr/w02PtU8Oos0L0Eyur/SXyOkAYc1ejrt7MAhhJ1Yt6aP lyC005RYEEWmOmZovoiuoL5izpFxhl34H/EOzDeVM2iaHPwdrjierO+PWKxFT7fohKUz4ogKTKEqt YU9w6pCg==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.98 #2 (Red Hat Linux)) id 1tNjO9-0000000FLOF-1AAW; Wed, 18 Dec 2024 02:02:13 +0000 From: Luis Chamberlain To: axboe@kernel.dk, hch@lst.de, hare@suse.de, kbusch@kernel.org, sagi@grimberg.me, linux-nvme@lists.infradead.org, willy@infradead.org, dave@stgolabs.net, david@fromorbit.com, djwong@kernel.org Cc: john.g.garry@oracle.com, ritesh.list@gmail.com, linux-fsdevel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-mm@kvack.org, linux-block@vger.kernel.org, gost.dev@samsung.com, p.raghav@samsung.com, da.gomez@samsung.com, kernel@pankajraghav.com, mcgrof@kernel.org Subject: [PATCH 0/2] block size limit cleanups Date: Tue, 17 Dec 2024 18:02:10 -0800 Message-ID: <20241218020212.3657139-1-mcgrof@kernel.org> X-Mailer: git-send-email 2.47.1 MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Queue-Id: B5FF7180013 X-Rspamd-Server: rspam06 X-Stat-Signature: 64cokoc86ra9a99j8ehfy5tfchsc7wke X-Rspamd-Pre-Result: action=add header; module=dmarc; Action set by DMARC X-Rspam: Yes X-HE-Tag: 1734487320-719046 X-HE-Meta: U2FsdGVkX1/9n7yzpZ/4XssDYhQMqCEIT282w/C9r/I/geSTysJtZvWpGZKd6gw4VXeXSzxR65wOVtWfzY6ZTv+2z2qCeYK+5eUzo1QPw1Uwf7n8iz3kBjvzMhcuop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7uAOuXp0A01xDQIxuk5ZDhHcuZkTnqVBQtsNrkuYLVKrZ/KizXuYtBUA04yGUozgSGPNt1yoievhBO6a0t+JTU9lWTDQJCRw+OY8i/Re8RVko2i1HmCHm8IkOJ2iWrskAzPXvGF1+ZfaF9j3CDtcr/i7NXflGZr0dYs6WLPXSw+iJFf6f0aGIbN+s2LNjrSqN465mv2B2tCrljKN3BH5ZLw4GgY+26mYD5AiDe/siQUJqcJWWxb09kXbT9t7CB9ePI9hnaGi/oVkSTiFoirJGKoCCgwBnnM2w== X-Bogosity: Ham, tests=bogofilter, spamicity=0.061982, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: This spins off two change which introduces no functional changes from the bs > ps block device patch series [0]. These are just cleanups. [0] https://lkml.kernel.org/r/20241214031050.1337920-1-mcgrof@kernel.org Luis Chamberlain (2): block/bdev: use helper for max block size check nvme: use blk_validate_block_size() for max LBA check block/bdev.c | 3 +-- drivers/nvme/host/core.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) Reviewed-by: Keith Busch Reviewed-by: Christoph Hellwig