diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-04-23 18:32:11 +0300 |
---|---|---|
committer | Damien Le Moal <damien.lemoal@wdc.com> | 2020-04-27 08:51:39 +0900 |
commit | 568776f992c4cb5e1b5715dc4ab62e6ae906b80d (patch) | |
tree | ece674d7518b0775610543d1bce6c2db22dcc316 /fs/zonefs/super.c | |
parent | 6a8b55ed4056ea5559ebe4f6a4b247f627870d4c (diff) |
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>
Diffstat (limited to 'fs/zonefs/super.c')
-rw-r--r-- | fs/zonefs/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/zonefs/super.c b/fs/zonefs/super.c index 3ce9829a6936..25b8a924517c 100644 --- a/fs/zonefs/super.c +++ b/fs/zonefs/super.c @@ -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: |