forked from luck/tmp_suning_uos_patched
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: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
This commit is contained in:
parent
6a8b55ed40
commit
568776f992
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user