* [PATCH] btrfs-progs: qgroup: fix error in ASSERT condition expression
@ 2016-11-17 5:01 Tsutomu Itoh
2016-11-18 18:32 ` David Sterba
0 siblings, 1 reply; 2+ messages in thread
From: Tsutomu Itoh @ 2016-11-17 5:01 UTC (permalink / raw)
To: linux-btrfs
Option -f, -F and --sort don't work because a conditional expression
of ASSERT is wrong.
Signed-off-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
---
qgroup.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/qgroup.c b/qgroup.c
index 9d10cb8..071d15e 100644
--- a/qgroup.c
+++ b/qgroup.c
@@ -480,7 +480,7 @@ int btrfs_qgroup_setup_comparer(struct btrfs_qgroup_comparer_set **comp_set,
*comp_set = set;
}
- ASSERT(set->comps[set->ncomps].comp_func != NULL);
+ ASSERT(set->comps[set->ncomps].comp_func == NULL);
set->comps[set->ncomps].comp_func = all_comp_funcs[comparer];
set->comps[set->ncomps].is_descending = is_descending;
@@ -847,7 +847,7 @@ int btrfs_qgroup_setup_filter(struct btrfs_qgroup_filter_set **filter_set,
*filter_set = set;
}
- ASSERT(set->filters[set->nfilters].filter_func != NULL);
+ ASSERT(set->filters[set->nfilters].filter_func == NULL);
set->filters[set->nfilters].filter_func = all_filter_funcs[filter];
set->filters[set->nfilters].data = data;
set->nfilters++;
--
2.9.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] btrfs-progs: qgroup: fix error in ASSERT condition expression
2016-11-17 5:01 [PATCH] btrfs-progs: qgroup: fix error in ASSERT condition expression Tsutomu Itoh
@ 2016-11-18 18:32 ` David Sterba
0 siblings, 0 replies; 2+ messages in thread
From: David Sterba @ 2016-11-18 18:32 UTC (permalink / raw)
To: Tsutomu Itoh; +Cc: linux-btrfs
On Thu, Nov 17, 2016 at 02:01:31PM +0900, Tsutomu Itoh wrote:
> Option -f, -F and --sort don't work because a conditional expression
> of ASSERT is wrong.
>
> Signed-off-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-11-18 18:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-17 5:01 [PATCH] btrfs-progs: qgroup: fix error in ASSERT condition expression Tsutomu Itoh
2016-11-18 18:32 ` David Sterba
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.