Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754671AbbLJRit (ORCPT ); Thu, 10 Dec 2015 12:38:49 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:23192 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754258AbbLJRir (ORCPT ); Thu, 10 Dec 2015 12:38:47 -0500 To: "Darrick J. Wong" Cc: axboe@kernel.dk, hch@infradead.org, martin.petersen@oracle.com, linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, shane.seymour@hpe.com, bfields@fieldses.org, linux-fsdevel@vger.kernel.org, jlayton@poochiereds.net Subject: Re: [PATCH v5 2/2] block: create ioctl to discard-or-zeroout a range of blocks From: "Martin K. Petersen" Organization: Oracle Corporation References: <20151208062104.21427.91134.stgit@birch.djwong.org> <20151208062111.21427.30921.stgit@birch.djwong.org> Date: Thu, 10 Dec 2015 12:38:18 -0500 In-Reply-To: <20151208062111.21427.30921.stgit@birch.djwong.org> (Darrick J. Wong's message of "Mon, 07 Dec 2015 22:21:11 -0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Source-IP: userv0022.oracle.com [156.151.31.74] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1038 Lines: 22 >>>>> "Darrick" == Darrick J Wong writes: Darrick> Create a new ioctl to expose the block layer's newfound ability Darrick> to issue either a zeroing discard, a WRITE SAME with a zero Darrick> page, or a regular write with the zero page. This BLKZEROOUT2 Darrick> ioctl takes {start, length, flags} as parameters. So far, the Darrick> only flag available is to enable the zeroing discard part -- Darrick> without it, the call invokes the old BLKZEROOUT behavior. Darrick> start and length have the same meaning as in BLKZEROOUT. Darrick> This new ioctl also invalidates the page cache correctly on Darrick> account of the previous patch in the series. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/