From 6e0e0d467f39c3211ae0111cfbf2de8e73785bdb Mon Sep 17 00:00:00 2001 From: David Sterba Date: Tue, 7 Sep 2021 18:40:48 +0200 Subject: [PATCH] btrfs-progs: move qgroup.h to cmds/ There are declarations that are namely for the command line out put, filters and formatting. Move it to cmds/. Signed-off-by: David Sterba --- qgroup.h => cmds/qgroup.h | 5 +++-- cmds/subvolume.c | 2 +- qgroup.c | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) rename qgroup.h => cmds/qgroup.h (98%) diff --git a/qgroup.h b/cmds/qgroup.h similarity index 98% rename from qgroup.h rename to cmds/qgroup.h index cbe21545..a813f8d5 100644 --- a/qgroup.h +++ b/cmds/qgroup.h @@ -16,8 +16,8 @@ * Boston, MA 021110-1307, USA. */ -#ifndef __BTRFS_QGROUP_H__ -#define __BTRFS_QGROUP_H__ +#ifndef __CMDS_QGROUP_H__ +#define __CMDS_QGROUP_H__ #include "kerncompat.h" #include "ioctl.h" @@ -110,4 +110,5 @@ int qgroup_inherit_add_copy(struct btrfs_qgroup_inherit **inherit, char *arg, int type); int btrfs_qgroup_query(int fd, u64 qgroupid, struct btrfs_qgroup_stats *stats); + #endif diff --git a/cmds/subvolume.c b/cmds/subvolume.c index f10a19f1..3142c962 100644 --- a/cmds/subvolume.c +++ b/cmds/subvolume.c @@ -32,7 +32,7 @@ #include "kerncompat.h" #include "ioctl.h" -#include "qgroup.h" +#include "cmds/qgroup.h" #include "kernel-shared/ctree.h" #include "cmds/commands.h" diff --git a/qgroup.c b/qgroup.c index 4e8ced1d..90382dfa 100644 --- a/qgroup.c +++ b/qgroup.c @@ -16,12 +16,12 @@ * Boston, MA 021110-1307, USA. */ -#include "qgroup.h" #include #include "kernel-shared/ctree.h" #include "ioctl.h" #include "common/utils.h" #include "common/units.h" +#include "cmds/qgroup.h" #include #define BTRFS_QGROUP_NFILTERS_INCREASE (2 * BTRFS_QGROUP_FILTER_MAX)