diff options
Diffstat (limited to 'fs/gfs2/locking/dlm/plock.c')
-rw-r--r-- | fs/gfs2/locking/dlm/plock.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/fs/gfs2/locking/dlm/plock.c b/fs/gfs2/locking/dlm/plock.c index 263636b390fe..7365aec9511b 100644 --- a/fs/gfs2/locking/dlm/plock.c +++ b/fs/gfs2/locking/dlm/plock.c | |||
@@ -58,10 +58,10 @@ static void send_op(struct plock_op *op) | |||
58 | wake_up(&send_wq); | 58 | wake_up(&send_wq); |
59 | } | 59 | } |
60 | 60 | ||
61 | int gdlm_plock(lm_lockspace_t *lockspace, struct lm_lockname *name, | 61 | int gdlm_plock(void *lockspace, struct lm_lockname *name, |
62 | struct file *file, int cmd, struct file_lock *fl) | 62 | struct file *file, int cmd, struct file_lock *fl) |
63 | { | 63 | { |
64 | struct gdlm_ls *ls = (struct gdlm_ls *) lockspace; | 64 | struct gdlm_ls *ls = lockspace; |
65 | struct plock_op *op; | 65 | struct plock_op *op; |
66 | int rv; | 66 | int rv; |
67 | 67 | ||
@@ -102,10 +102,10 @@ int gdlm_plock(lm_lockspace_t *lockspace, struct lm_lockname *name, | |||
102 | return rv; | 102 | return rv; |
103 | } | 103 | } |
104 | 104 | ||
105 | int gdlm_punlock(lm_lockspace_t *lockspace, struct lm_lockname *name, | 105 | int gdlm_punlock(void *lockspace, struct lm_lockname *name, |
106 | struct file *file, struct file_lock *fl) | 106 | struct file *file, struct file_lock *fl) |
107 | { | 107 | { |
108 | struct gdlm_ls *ls = (struct gdlm_ls *) lockspace; | 108 | struct gdlm_ls *ls = lockspace; |
109 | struct plock_op *op; | 109 | struct plock_op *op; |
110 | int rv; | 110 | int rv; |
111 | 111 | ||
@@ -141,10 +141,10 @@ int gdlm_punlock(lm_lockspace_t *lockspace, struct lm_lockname *name, | |||
141 | return rv; | 141 | return rv; |
142 | } | 142 | } |
143 | 143 | ||
144 | int gdlm_plock_get(lm_lockspace_t *lockspace, struct lm_lockname *name, | 144 | int gdlm_plock_get(void *lockspace, struct lm_lockname *name, |
145 | struct file *file, struct file_lock *fl) | 145 | struct file *file, struct file_lock *fl) |
146 | { | 146 | { |
147 | struct gdlm_ls *ls = (struct gdlm_ls *) lockspace; | 147 | struct gdlm_ls *ls = lockspace; |
148 | struct plock_op *op; | 148 | struct plock_op *op; |
149 | int rv; | 149 | int rv; |
150 | 150 | ||
@@ -231,8 +231,7 @@ static ssize_t dev_write(struct file *file, const char __user *u, size_t count, | |||
231 | 231 | ||
232 | spin_lock(&ops_lock); | 232 | spin_lock(&ops_lock); |
233 | list_for_each_entry(op, &recv_list, list) { | 233 | list_for_each_entry(op, &recv_list, list) { |
234 | if (op->info.fsid == info.fsid && | 234 | if (op->info.fsid == info.fsid && op->info.number == info.number && |
235 | op->info.number == info.number && | ||
236 | op->info.owner == info.owner) { | 235 | op->info.owner == info.owner) { |
237 | list_del_init(&op->list); | 236 | list_del_init(&op->list); |
238 | found = 1; | 237 | found = 1; |