|
|
@@ -208,7 +208,7 @@ again:
|
|
|
/* The new front of the queue now owns the state variables. */
|
|
|
next = list_entry(vnode->pending_locks.next,
|
|
|
struct file_lock, fl_u.afs.link);
|
|
|
- vnode->lock_key = afs_file_key(next->fl_file);
|
|
|
+ vnode->lock_key = key_get(afs_file_key(next->fl_file));
|
|
|
vnode->lock_type = (next->fl_type == F_RDLCK) ? AFS_LOCK_READ : AFS_LOCK_WRITE;
|
|
|
vnode->lock_state = AFS_VNODE_LOCK_WAITING_FOR_CB;
|
|
|
goto again;
|
|
|
@@ -413,7 +413,7 @@ static void afs_dequeue_lock(struct afs_vnode *vnode, struct file_lock *fl)
|
|
|
/* The new front of the queue now owns the state variables. */
|
|
|
next = list_entry(vnode->pending_locks.next,
|
|
|
struct file_lock, fl_u.afs.link);
|
|
|
- vnode->lock_key = afs_file_key(next->fl_file);
|
|
|
+ vnode->lock_key = key_get(afs_file_key(next->fl_file));
|
|
|
vnode->lock_type = (next->fl_type == F_RDLCK) ? AFS_LOCK_READ : AFS_LOCK_WRITE;
|
|
|
vnode->lock_state = AFS_VNODE_LOCK_WAITING_FOR_CB;
|
|
|
afs_lock_may_be_available(vnode);
|