diff options
Diffstat (limited to 'arch/s390/hypfs/inode.c')
| -rw-r--r-- | arch/s390/hypfs/inode.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/s390/hypfs/inode.c b/arch/s390/hypfs/inode.c index 5a805df216bb..bd9914b89488 100644 --- a/arch/s390/hypfs/inode.c +++ b/arch/s390/hypfs/inode.c | |||
| @@ -355,11 +355,7 @@ static struct dentry *hypfs_create_file(struct super_block *sb, | |||
| 355 | { | 355 | { |
| 356 | struct dentry *dentry; | 356 | struct dentry *dentry; |
| 357 | struct inode *inode; | 357 | struct inode *inode; |
| 358 | struct qstr qname; | ||
| 359 | 358 | ||
| 360 | qname.name = name; | ||
| 361 | qname.len = strlen(name); | ||
| 362 | qname.hash = full_name_hash(name, qname.len); | ||
| 363 | mutex_lock(&parent->d_inode->i_mutex); | 359 | mutex_lock(&parent->d_inode->i_mutex); |
| 364 | dentry = lookup_one_len(name, parent, strlen(name)); | 360 | dentry = lookup_one_len(name, parent, strlen(name)); |
| 365 | if (IS_ERR(dentry)) { | 361 | if (IS_ERR(dentry)) { |
| @@ -426,7 +422,7 @@ struct dentry *hypfs_create_u64(struct super_block *sb, struct dentry *dir, | |||
| 426 | char tmp[TMP_SIZE]; | 422 | char tmp[TMP_SIZE]; |
| 427 | struct dentry *dentry; | 423 | struct dentry *dentry; |
| 428 | 424 | ||
| 429 | snprintf(tmp, TMP_SIZE, "%lld\n", (unsigned long long int)value); | 425 | snprintf(tmp, TMP_SIZE, "%llu\n", (unsigned long long int)value); |
| 430 | buffer = kstrdup(tmp, GFP_KERNEL); | 426 | buffer = kstrdup(tmp, GFP_KERNEL); |
| 431 | if (!buffer) | 427 | if (!buffer) |
| 432 | return ERR_PTR(-ENOMEM); | 428 | return ERR_PTR(-ENOMEM); |
