Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752628AbdLSP67 (ORCPT ); Tue, 19 Dec 2017 10:58:59 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:37170 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751713AbdLSP6w (ORCPT ); Tue, 19 Dec 2017 10:58:52 -0500 X-Google-Smtp-Source: ACJfBotVJFhCT+uEWQy9dkimAtgEp3BWNngAQwhcVbeii0cUKg0Wd2CIy7e2lTtJC6LSNzWNYkcrH13nGnOhSjksGoA= MIME-Version: 1.0 In-Reply-To: <1513685879-21823-2-git-send-email-wei.w.wang@intel.com> References: <1513685879-21823-1-git-send-email-wei.w.wang@intel.com> <1513685879-21823-2-git-send-email-wei.w.wang@intel.com> From: Philippe Ombredanne Date: Tue, 19 Dec 2017 16:58:10 +0100 Message-ID: Subject: Re: [PATCH v20 1/7] xbitmap: Introduce xbitmap To: mawilcox@microsoft.com Cc: virtio-dev@lists.oasis-open.org, LKML , qemu-devel@nongnu.org, virtualization@lists.linux-foundation.org, kvm@vger.kernel.org, linux-mm@kvack.org, mst@redhat.com, mhocko@kernel.org, Andrew Morton , david@redhat.com, penguin-kernel@i-love.sakura.ne.jp, cornelia.huck@de.ibm.com, mgorman@techsingularity.net, aarcange@redhat.com, amit.shah@redhat.com, Paolo Bonzini , willy@infradead.org, liliang.opensource@gmail.com, yang.zhang.wz@gmail.com, quan.xu0@gmail.com, nilal@redhat.com, riel@redhat.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1512 Lines: 45 Matthew, On Tue, Dec 19, 2017 at 1:17 PM, Wei Wang wrote: > From: Matthew Wilcox > > 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, and this commit adds the bare bones -- > xb_set_bit(), xb_clear_bit() and xb_test_bit(). > --- /dev/null > +++ b/include/linux/xbitmap.h > @@ -0,0 +1,49 @@ > +/* > + * eXtensible Bitmaps > + * Copyright (c) 2017 Microsoft Corporation > + * > + * This program is free software; you can redistribute it and/or > + * modify it under the terms of the GNU General Public License as > + * published by the Free Software Foundation; either version 2 of the > + * License, or (at your option) any later version. > + * > + * This program is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * > + * eXtensible Bitmaps provide an unlimited-size sparse bitmap facility. > + * All bits are initially zero. > + */ Would you mind using the new SPDX tags documented in Thomas patch set [1] rather than this fine but longer legalese? And if you could spread the word to others in your team this would be very nice. Thank you! [1] https://lkml.org/lkml/2017/12/4/934 -- Cordially Philippe Ombredanne