From: Martin K. Petersen Date: Wed, 06 Apr 2022 23:30:51 -0400 Subject: [Cluster-devel] [Ocfs2-devel] [PATCH 23/27] block: add a bdev_max_discard_sectors helper In-Reply-To: <20220406060516.409838-24-hch@lst.de> (Christoph Hellwig via Ocfs2-devel's message of "Wed, 6 Apr 2022 08:05:12 +0200") References: <20220406060516.409838-1-hch@lst.de> <20220406060516.409838-24-hch@lst.de> Message-ID: List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Christoph, > Add a helper to query the number of sectors support per each discard > bio based on the block device and use this helper to stop various > places from poking into the request_queue to see if discard is > supported and if so how much. This mirrors what is done e.g. for > write zeroes as well. Nicer! Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering