From mboxrd@z Thu Jan 1 00:00:00 1970 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 03932C433EF for ; Tue, 12 Oct 2021 06:20:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CE49460F21 for ; Tue, 12 Oct 2021 06:20:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232431AbhJLGWw (ORCPT ); Tue, 12 Oct 2021 02:22:52 -0400 Received: from verein.lst.de ([213.95.11.211]:40081 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231190AbhJLGWw (ORCPT ); Tue, 12 Oct 2021 02:22:52 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 6C0EF68B05; Tue, 12 Oct 2021 08:20:49 +0200 (CEST) Date: Tue, 12 Oct 2021 08:20:49 +0200 From: Christoph Hellwig To: Mikulas Patocka Cc: Christoph Hellwig , Jens Axboe , Ming Lei , Zdenek Kabelac , linux-block@vger.kernel.org, dm-devel@redhat.com Subject: Re: [PATCH] loop: don't print warnings if the underlying filesystem doesn't support discard Message-ID: <20211012062049.GB17407@lst.de> References: <20210924155822.GA10064@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On Mon, Oct 04, 2021 at 09:01:33AM -0400, Mikulas Patocka wrote: > Do you want this patch? Yes, this looks like what I want. Minor nitpicks below: > + .fallocate_flags = BLKDEV_FALLOC_FL_SUPPORTED, I'd probably call this fallocate_supported_flags. > + .fallocate_flags = FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | FALLOC_FL_ZERO_RANGE, Please avoid over 80 lines for a plain list of flags.