[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHp75Vd_tt0bV_OqAOwc=_uWrsF2zP9pMSbxPw_AxF_s9zj-pw@mail.gmail.com>
Date: Fri, 16 Feb 2018 23:45:51 +0200
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: Matthew Wilcox <willy@...radead.org>
Cc: Wei Wang <wei.w.wang@...el.com>, virtio-dev@...ts.oasis-open.org,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
qemu-devel@...gnu.org, virtualization@...ts.linux-foundation.org,
kvm@...r.kernel.org, linux-mm <linux-mm@...ck.org>,
"Michael S. Tsirkin" <mst@...hat.com>, mhocko@...nel.org,
Andrew Morton <akpm@...ux-foundation.org>,
Matthew Wilcox <mawilcox@...rosoft.com>, david@...hat.com,
Tetsuo Handa <penguin-kernel@...ove.sakura.ne.jp>,
cornelia.huck@...ibm.com, mgorman@...hsingularity.net,
aarcange@...hat.com, amit.shah@...hat.com,
Paolo Bonzini <pbonzini@...hat.com>,
liliang.opensource@...il.com, yang.zhang.wz@...il.com,
quan.xu0@...il.com, nilal@...hat.com, riel@...hat.com
Subject: Re: [PATCH v21 1/5] xbitmap: Introduce xbitmap
On Fri, Feb 16, 2018 at 8:30 PM, Matthew Wilcox <willy@...radead.org> wrote:
> On Fri, Feb 16, 2018 at 07:44:50PM +0200, Andy Shevchenko wrote:
>> On Tue, Jan 9, 2018 at 1:10 PM, Wei Wang <wei.w.wang@...el.com> wrote:
>> > From: Matthew Wilcox <mawilcox@...rosoft.com>
>> >
>> > The eXtensible Bitmap is a sparse bitmap representation which is
>> > efficient for set bits which tend to cluster. It supports up to
>> > 'unsigned long' worth of bits.
>>
>> > lib/xbitmap.c | 444 +++++++++++++++++++++++++++++++
>>
>> Please, split tests to a separate module.
>
> Hah, I just did this two days ago! I didn't publish it yet, but I also made
> it compile both in userspace and as a kernel module.
>
> It's the top two commits here:
>
> http://git.infradead.org/users/willy/linux-dax.git/shortlog/refs/heads/xarray-2018-02-12
>
Thanks!
> Note this is a complete rewrite compared to the version presented here; it
> sits on top of the XArray and no longer has a preload interface. It has a
> superset of the IDA functionality.
Noted.
Now, the question about test case. Why do you heavily use BUG_ON?
Isn't resulting statistics enough?
See how other lib/test_* modules do.
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists