mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 04:34:08 +08:00
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