diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2019-01-10 08:41:53 -0500 |
---|---|---|
committer | Dave Kleikamp <dave.kleikamp@oracle.com> | 2019-01-10 11:28:56 -0500 |
commit | 2e3bc6125154c691e987e2554f2c99ec10f83b73 (patch) | |
tree | 07862dad0ce7c0e82d10d672de41aca46eae5fed /fs/jfs/super.c | |
parent | 7ca5e8f089c2cbe79ee220b5acb4bc6cf4422818 (diff) |
fs/jfs: Switch to use new generic UUID API
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 <andriy.shevchenko@linux.intel.com>
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Diffstat (limited to 'fs/jfs/super.c')
-rw-r--r-- | fs/jfs/super.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/jfs/super.c b/fs/jfs/super.c index 65d8fc87ab11..c15ff56a8516 100644 --- a/fs/jfs/super.c +++ b/fs/jfs/super.c | |||
@@ -174,9 +174,11 @@ static int jfs_statfs(struct dentry *dentry, struct kstatfs *buf) | |||
174 | buf->f_files = maxinodes; | 174 | buf->f_files = maxinodes; |
175 | buf->f_ffree = maxinodes - (atomic_read(&imap->im_numinos) - | 175 | buf->f_ffree = maxinodes - (atomic_read(&imap->im_numinos) - |
176 | atomic_read(&imap->im_numfree)); | 176 | atomic_read(&imap->im_numfree)); |
177 | buf->f_fsid.val[0] = (u32)crc32_le(0, sbi->uuid, sizeof(sbi->uuid)/2); | 177 | buf->f_fsid.val[0] = crc32_le(0, (char *)&sbi->uuid, |
178 | buf->f_fsid.val[1] = (u32)crc32_le(0, sbi->uuid + sizeof(sbi->uuid)/2, | 178 | sizeof(sbi->uuid)/2); |
179 | sizeof(sbi->uuid)/2); | 179 | buf->f_fsid.val[1] = crc32_le(0, |
180 | (char *)&sbi->uuid + sizeof(sbi->uuid)/2, | ||
181 | sizeof(sbi->uuid)/2); | ||
180 | 182 | ||
181 | buf->f_namelen = JFS_NAME_MAX; | 183 | buf->f_namelen = JFS_NAME_MAX; |
182 | return 0; | 184 | return 0; |