Re: [PATCH v1] Btrfs: Switch to use new generic UUID API

2019-01-21 Thread David Sterba
On Mon, Jan 21, 2019 at 09:44:36AM +0100, Christoph Hellwig wrote: > On Fri, Jan 11, 2019 at 02:48:03PM +0100, David Sterba wrote: > > > if (is_fstree(objectid)) > > > - uuid_le_gen(&uuid); > > > - memcpy(root->root_item.uuid, uuid.b, BTRFS_UUID_SIZE); > > > + guid_gen((guid_t *)&

Re: [PATCH v1] Btrfs: Switch to use new generic UUID API

2019-01-21 Thread Christoph Hellwig
On Fri, Jan 11, 2019 at 02:48:03PM +0100, David Sterba wrote: > > if (is_fstree(objectid)) > > - uuid_le_gen(&uuid); > > - memcpy(root->root_item.uuid, uuid.b, BTRFS_UUID_SIZE); > > + guid_gen((guid_t *)&root->root_item.uuid); > > + else > > + guid_copy((guid_t

Re: [PATCH v1] Btrfs: Switch to use new generic UUID API

2019-01-11 Thread David Sterba
On Thu, Jan 10, 2019 at 08:16:53PM +0200, Andy Shevchenko wrote: > There are new types and helpers that are supposed to be used in new code. > > As a preparation to get rid of legacy types and API functions do > the conversion here. > > Signed-off-by: Andy Shevchenko > --- > - not tested on actu