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 X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BA642C54FCC for ; Mon, 20 Apr 2020 22:10:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 971F2206E9 for ; Mon, 20 Apr 2020 22:10:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726980AbgDTWKr (ORCPT ); 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.