[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOQ4uxg0xRNw_pVipXqt_qpNm58uzp+VLYTcwMVypmmZZ-ztcg@mail.gmail.com>
Date: Thu, 11 May 2017 11:31:40 +0300
From: Amir Goldstein <amir73il@...il.com>
To: Christoph Hellwig <hch@....de>
Cc: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
linux-fsdevel <linux-fsdevel@...r.kernel.org>,
Shaohua Li <shli@...nel.org>,
Dan Williams <dan.j.williams@...el.com>,
David Howells <dhowells@...hat.com>,
Steven Whitehouse <swhiteho@...hat.com>,
Mimi Zohar <zohar@...ux.vnet.ibm.com>,
linux-xfs <linux-xfs@...r.kernel.org>,
linux-raid@...r.kernel.org, linux-nvdimm@...ts.01.org,
linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 03/16] uuid: rename uuid types
On Thu, May 11, 2017 at 10:59 AM, Christoph Hellwig <hch@....de> wrote:
> On Wed, May 10, 2017 at 10:15:51PM +0300, Amir Goldstein wrote:
>> > +static inline int uuid_cmp(const uuid_t u1, const uuid_t u2)
>> > {
>> > - return memcmp(&u1, &u2, sizeof(uuid_be));
>> > + return memcmp(&u1, &u2, sizeof(uuid_t));
>> > }
>> >
>>
>>
>> I think we should use this opportunity to change these to (uuid_t *, uuid_t *)
>> which is more in line with the rest of the helpers including the new helpers
>> hoisted from xfs.
>
> Or just kill them off - uuid/guid_equals is the better interface for all
> existing users as far as I can tell. My updated series already kills
> off the be/uuid one, the le/guid one will need a bit more work, though.
That works too. and for another argument, why need a helper uuid/guid_cmp
when one can use C comparison (i.e. u1 != u2) ? assuming that we have no
reason to abstract that fact that uuid_t/guid_t are a struct type.
Powered by blists - more mailing lists