diff options
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/hypfs/inode.c | 7 | ||||
-rw-r--r-- | arch/s390/kernel/compat_linux.c | 2 | ||||
-rw-r--r-- | arch/s390/kernel/debug.c | 2 | ||||
-rw-r--r-- | arch/s390/kernel/stacktrace.c | 17 |
4 files changed, 13 insertions, 15 deletions
diff --git a/arch/s390/hypfs/inode.c b/arch/s390/hypfs/inode.c index bdade5f2e325..813fc21358f9 100644 --- a/arch/s390/hypfs/inode.c +++ b/arch/s390/hypfs/inode.c | |||
@@ -91,7 +91,6 @@ static struct inode *hypfs_make_inode(struct super_block *sb, int mode) | |||
91 | ret->i_mode = mode; | 91 | ret->i_mode = mode; |
92 | ret->i_uid = hypfs_info->uid; | 92 | ret->i_uid = hypfs_info->uid; |
93 | ret->i_gid = hypfs_info->gid; | 93 | ret->i_gid = hypfs_info->gid; |
94 | ret->i_blksize = PAGE_CACHE_SIZE; | ||
95 | ret->i_blocks = 0; | 94 | ret->i_blocks = 0; |
96 | ret->i_atime = ret->i_mtime = ret->i_ctime = CURRENT_TIME; | 95 | ret->i_atime = ret->i_mtime = ret->i_ctime = CURRENT_TIME; |
97 | if (mode & S_IFDIR) | 96 | if (mode & S_IFDIR) |
@@ -104,13 +103,13 @@ static struct inode *hypfs_make_inode(struct super_block *sb, int mode) | |||
104 | 103 | ||
105 | static void hypfs_drop_inode(struct inode *inode) | 104 | static void hypfs_drop_inode(struct inode *inode) |
106 | { | 105 | { |
107 | kfree(inode->u.generic_ip); | 106 | kfree(inode->i_private); |
108 | generic_delete_inode(inode); | 107 | generic_delete_inode(inode); |
109 | } | 108 | } |
110 | 109 | ||
111 | static int hypfs_open(struct inode *inode, struct file *filp) | 110 | static int hypfs_open(struct inode *inode, struct file *filp) |
112 | { | 111 | { |
113 | char *data = filp->f_dentry->d_inode->u.generic_ip; | 112 | char *data = filp->f_dentry->d_inode->i_private; |
114 | struct hypfs_sb_info *fs_info; | 113 | struct hypfs_sb_info *fs_info; |
115 | 114 | ||
116 | if (filp->f_mode & FMODE_WRITE) { | 115 | if (filp->f_mode & FMODE_WRITE) { |
@@ -352,7 +351,7 @@ static struct dentry *hypfs_create_file(struct super_block *sb, | |||
352 | parent->d_inode->i_nlink++; | 351 | parent->d_inode->i_nlink++; |
353 | } else | 352 | } else |
354 | BUG(); | 353 | BUG(); |
355 | inode->u.generic_ip = data; | 354 | inode->i_private = data; |
356 | d_instantiate(dentry, inode); | 355 | d_instantiate(dentry, inode); |
357 | dget(dentry); | 356 | dget(dentry); |
358 | return dentry; | 357 | return dentry; |
diff --git a/arch/s390/kernel/compat_linux.c b/arch/s390/kernel/compat_linux.c index 785c9f70ac98..91b2884fa5c4 100644 --- a/arch/s390/kernel/compat_linux.c +++ b/arch/s390/kernel/compat_linux.c | |||
@@ -708,7 +708,7 @@ asmlinkage long sys32_sendfile64(int out_fd, int in_fd, | |||
708 | return ret; | 708 | return ret; |
709 | } | 709 | } |
710 | 710 | ||
711 | #ifdef CONFIG_SYSCTL | 711 | #ifdef CONFIG_SYSCTL_SYSCALL |
712 | struct __sysctl_args32 { | 712 | struct __sysctl_args32 { |
713 | u32 name; | 713 | u32 name; |
714 | int nlen; | 714 | int nlen; |
diff --git a/arch/s390/kernel/debug.c b/arch/s390/kernel/debug.c index 7ba20922a535..43f3d0c7e132 100644 --- a/arch/s390/kernel/debug.c +++ b/arch/s390/kernel/debug.c | |||
@@ -603,7 +603,7 @@ debug_open(struct inode *inode, struct file *file) | |||
603 | debug_info_t *debug_info, *debug_info_snapshot; | 603 | debug_info_t *debug_info, *debug_info_snapshot; |
604 | 604 | ||
605 | down(&debug_lock); | 605 | down(&debug_lock); |
606 | debug_info = (struct debug_info*)file->f_dentry->d_inode->u.generic_ip; | 606 | debug_info = file->f_dentry->d_inode->i_private; |
607 | /* find debug view */ | 607 | /* find debug view */ |
608 | for (i = 0; i < DEBUG_MAX_VIEWS; i++) { | 608 | for (i = 0; i < DEBUG_MAX_VIEWS; i++) { |
609 | if (!debug_info->views[i]) | 609 | if (!debug_info->views[i]) |
diff --git a/arch/s390/kernel/stacktrace.c b/arch/s390/kernel/stacktrace.c index de83f38288d0..d9428a0fc8fb 100644 --- a/arch/s390/kernel/stacktrace.c +++ b/arch/s390/kernel/stacktrace.c | |||
@@ -59,9 +59,7 @@ static inline unsigned long save_context_stack(struct stack_trace *trace, | |||
59 | } | 59 | } |
60 | } | 60 | } |
61 | 61 | ||
62 | void save_stack_trace(struct stack_trace *trace, | 62 | void save_stack_trace(struct stack_trace *trace, struct task_struct *task) |
63 | struct task_struct *task, int all_contexts, | ||
64 | unsigned int skip) | ||
65 | { | 63 | { |
66 | register unsigned long sp asm ("15"); | 64 | register unsigned long sp asm ("15"); |
67 | unsigned long orig_sp; | 65 | unsigned long orig_sp; |
@@ -69,22 +67,23 @@ void save_stack_trace(struct stack_trace *trace, | |||
69 | sp &= PSW_ADDR_INSN; | 67 | sp &= PSW_ADDR_INSN; |
70 | orig_sp = sp; | 68 | orig_sp = sp; |
71 | 69 | ||
72 | sp = save_context_stack(trace, &skip, sp, | 70 | sp = save_context_stack(trace, &trace->skip, sp, |
73 | S390_lowcore.panic_stack - PAGE_SIZE, | 71 | S390_lowcore.panic_stack - PAGE_SIZE, |
74 | S390_lowcore.panic_stack); | 72 | S390_lowcore.panic_stack); |
75 | if ((sp != orig_sp) && !all_contexts) | 73 | if ((sp != orig_sp) && !trace->all_contexts) |
76 | return; | 74 | return; |
77 | sp = save_context_stack(trace, &skip, sp, | 75 | sp = save_context_stack(trace, &trace->skip, sp, |
78 | S390_lowcore.async_stack - ASYNC_SIZE, | 76 | S390_lowcore.async_stack - ASYNC_SIZE, |
79 | S390_lowcore.async_stack); | 77 | S390_lowcore.async_stack); |
80 | if ((sp != orig_sp) && !all_contexts) | 78 | if ((sp != orig_sp) && !trace->all_contexts) |
81 | return; | 79 | return; |
82 | if (task) | 80 | if (task) |
83 | save_context_stack(trace, &skip, sp, | 81 | save_context_stack(trace, &trace->skip, sp, |
84 | (unsigned long) task_stack_page(task), | 82 | (unsigned long) task_stack_page(task), |
85 | (unsigned long) task_stack_page(task) + THREAD_SIZE); | 83 | (unsigned long) task_stack_page(task) + THREAD_SIZE); |
86 | else | 84 | else |
87 | save_context_stack(trace, &skip, sp, S390_lowcore.thread_info, | 85 | save_context_stack(trace, &trace->skip, sp, |
86 | S390_lowcore.thread_info, | ||
88 | S390_lowcore.thread_info + THREAD_SIZE); | 87 | S390_lowcore.thread_info + THREAD_SIZE); |
89 | return; | 88 | return; |
90 | } | 89 | } |