diff options
author | Qu Wenruo <quwenruo@cn.fujitsu.com> | 2015-02-27 16:26:33 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2015-03-24 00:07:59 +0100 |
commit | 9922c42701f8a49d3df743a95c4f7a54c84c7452 (patch) | |
tree | 121dd77ff9b992beb0f1f93747b29a9cc2ca656c /cmds-qgroup.c | |
parent | f18f8b7afc6f4c714ece79bbd56064d012cbbea4 (diff) |
btrfs-progs: Update qgroup status flags and replace qgroup level/subvid calculation with inline function
Ctree.h of btrfs-progs contains wrong flags for btrfs_qgroup_status.
Update it with the one in kernel.
Also, introduce the inline function btrfs_qgroup_(level/subvid) to get
the level/subvolid of qgroup, to replace the old open-coded bit
operations.
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'cmds-qgroup.c')
-rw-r--r-- | cmds-qgroup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds-qgroup.c b/cmds-qgroup.c index c5082f72..2d6d84b8 100644 --- a/cmds-qgroup.c +++ b/cmds-qgroup.c @@ -52,7 +52,7 @@ static int qgroup_assign(int assign, int argc, char **argv) /* * FIXME src should accept subvol path */ - if ((args.src >> 48) >= (args.dst >> 48)) { + if (btrfs_qgroup_level(args.src) >= btrfs_qgroup_level(args.dst)) { fprintf(stderr, "ERROR: bad relation requested '%s'\n", path); return 1; } |