Commit 568776f9 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Damien Le Moal

zonefs: Replace uuid_copy() with import_uuid()

There is a specific API to treat raw data as UUID, i.e. import_uuid().
Use it instead of uuid_copy() with explicit casting.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: default avatarChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Reviewed-by: default avatarJohannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: default avatarDamien Le Moal <damien.lemoal@wdc.com>
parent 6a8b55ed
......@@ -1267,7 +1267,7 @@ static int zonefs_read_super(struct super_block *sb)
goto unmap;
}
uuid_copy(&sbi->s_uuid, (uuid_t *)super->s_uuid);
import_uuid(&sbi->s_uuid, super->s_uuid);
ret = 0;
unmap:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment