Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4073714ybz; Mon, 20 Apr 2020 15:12:36 -0700 (PDT) X-Google-Smtp-Source: APiQypIBx0v1gxej2bBS9HYaNIvqDiDDUDnMoRuO6NGhg2ZmXfuei+jLZXqwdFOwJ3PUQZgB4FuT X-Received: by 2002:a17:906:2488:: with SMTP id e8mr18304026ejb.157.1587420756670; Mon, 20 Apr 2020 15:12:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587420756; cv=none; d=google.com; s=arc-20160816; b=FZ4bONysNFk8zbk7GlSY5CBIFF2QC+SFeesTftV8DYhAJakP/xWJsdLUJU/v3OKDU7 pZce2A2kmIbjmtymEwVZ2fdHKVssDgxu4dWl1CQC5FIotqjcTZW+5Qrd357ZWH7DBpfx UhzOBnHt8ttpFEWO0Rt0PvS4y7X+oCIWhOXm9w9mzFyj+WcQ38Iz4hDbXJFB9kOEs6hN BEfmCrgSd0VMgYQR1yWSbE1wQcjBQf3H0inktj3R1CveitRBchjSVKJlJ7XfdtJyJeY5 W1cGpaLQKGaQtPyL/9b/qiguX0RXq9z64S4AzrSYB12tZvVKJ8ogJJKWU/G0uEE6NBLH vF2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :reply-to:message-id:subject:cc:to:from:date; bh=QpujBN/zT8npQRiuqS0PMlv/8PoaXgohn0CjNjrm+3Q=; b=IdKQIDf9kdBlq9QzNmxD8OGTX7BrSGMbazY9tG1uevFn/t9e8/YEl63+2v7WmfFmyM rJ/Xci6r1elTeMgJVj1LipsiA9vRK83jz6xRzlQ2iST2L9S1Ih5HXmYXrlEwU0zIoyKx rNWsIX2/00bF4vTJ9++L8YnjT59JqGKbB7UcL70YOoe9RB50hoLGVKl69fJarZv4lCkZ FynKKQCToQcyXj3ApOql6koNg0445KJ0kTWBtxMUyWpa0WzKS80ixrsipLFyZpAOEehk tr0jgsd3yoWke0EU6hkwqO66oWmZZh+jIfSzaHkbhIp/mInJaZLcywLtiDtGW0+LhxSA /EyA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cq3si421053edb.367.2020.04.20.15.12.13; Mon, 20 Apr 2020 15:12:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726854AbgDTWKr (ORCPT + 99 others); Mon, 20 Apr 2020 18:10:47 -0400 Received: from mx2.suse.de ([195.135.220.15]:41062 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725774AbgDTWKr (ORCPT ); Mon, 20 Apr 2020 18:10:47 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 2150FABC2; Mon, 20 Apr 2020 22:10:45 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id C8FD0DA72D; Tue, 21 Apr 2020 00:10:03 +0200 (CEST) Date: Tue, 21 Apr 2020 00:10:03 +0200 From: David Sterba To: Eugene Syromiatnikov Cc: linux-kernel@vger.kernel.org, linux-btrfs@vger.kernel.org, David Sterba , Josef Bacik , Chris Mason , Jeff Mahoney , wqu@suse.com Subject: Re: [PATCH] btrfs: move enum btrfs_compression_type to the UAPI header Message-ID: <20200420221003.GG18421@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, Eugene Syromiatnikov , linux-kernel@vger.kernel.org, linux-btrfs@vger.kernel.org, David Sterba , Josef Bacik , Chris Mason , Jeff Mahoney , wqu@suse.com References: <20200419101432.GA32249@asgard.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200419101432.GA32249@asgard.redhat.com> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 19, 2020 at 12:14:32PM +0200, Eugene Syromiatnikov wrote: > It is passed in struct btrfs_ioctl_defrag_range_args.compress_type > to BTRFS_IOC_DEFRAG_RANGE, so it has to be a part of UAPI. > Also, rely on enum definition rules to get BTRFS_NR_COMPRESS_TYPES > value and mark it as non-ABI. Adding the compression types makes sense for the UAPI, Qu has sent patch to move more code to the exported headers ("btrfs: move on-disk structure definitions to btrfs_tree.h"), including the compression type definition. I'd prefer to move the code in a bigger chunk than one by one, unless it's breaking compilation.