Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758129AbcCCSzj (ORCPT ); Thu, 3 Mar 2016 13:55:39 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:49941 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757738AbcCCSzb (ORCPT ); Thu, 3 Mar 2016 13:55:31 -0500 To: Christoph Hellwig Cc: "Martin K. Petersen" , Linus Torvalds , "Darrick J. Wong" , Jens Axboe , Andrew Morton , Linux API , Linux Kernel Mailing List , shane.seymour@hpe.com, Bruce Fields , linux-fsdevel , Jeff Layton Subject: Re: [PATCH 2/2] block: create ioctl to discard-or-zeroout a range of blocks From: "Martin K. Petersen" Organization: Oracle Corporation References: <20160302040932.16685.62789.stgit@birch.djwong.org> <20160302040947.16685.42926.stgit@birch.djwong.org> <20160302225601.GB21890@birch.djwong.org> <20160303180924.GA4116@infradead.org> Date: Thu, 03 Mar 2016 13:54:54 -0500 In-Reply-To: <20160303180924.GA4116@infradead.org> (Christoph Hellwig's message of "Thu, 3 Mar 2016 10:09:24 -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: aserv0022.oracle.com [141.146.126.234] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 482 Lines: 12 >>>>> "Christoph" == Christoph Hellwig writes: Christoph> - FALLOC_FL_PUNCH_HOLE assures zeroes are returned, but Christoph> space is deallocated as much as possible - Christoph> FALLOC_FL_ZERO_RANGE assures zeroes are returned, AND blocks Christoph> are actually allocated That works for me. I think it would be great if we could have consistent interfaces for fs and block. The more commonality the merrier. -- Martin K. Petersen Oracle Linux Engineering