diff options
Diffstat (limited to 'fs/ocfs2/dlmglue.c')
| -rw-r--r-- | fs/ocfs2/dlmglue.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/ocfs2/dlmglue.c b/fs/ocfs2/dlmglue.c index d1bd305ef0d7..f71250ed166f 100644 --- a/fs/ocfs2/dlmglue.c +++ b/fs/ocfs2/dlmglue.c | |||
| @@ -600,15 +600,13 @@ static inline int ocfs2_highest_compat_lock_level(int level) | |||
| 600 | static void lockres_set_flags(struct ocfs2_lock_res *lockres, | 600 | static void lockres_set_flags(struct ocfs2_lock_res *lockres, |
| 601 | unsigned long newflags) | 601 | unsigned long newflags) |
| 602 | { | 602 | { |
| 603 | struct list_head *pos, *tmp; | 603 | struct ocfs2_mask_waiter *mw, *tmp; |
| 604 | struct ocfs2_mask_waiter *mw; | ||
| 605 | 604 | ||
| 606 | assert_spin_locked(&lockres->l_lock); | 605 | assert_spin_locked(&lockres->l_lock); |
| 607 | 606 | ||
| 608 | lockres->l_flags = newflags; | 607 | lockres->l_flags = newflags; |
| 609 | 608 | ||
| 610 | list_for_each_safe(pos, tmp, &lockres->l_mask_waiters) { | 609 | list_for_each_entry_safe(mw, tmp, &lockres->l_mask_waiters, mw_item) { |
| 611 | mw = list_entry(pos, struct ocfs2_mask_waiter, mw_item); | ||
| 612 | if ((lockres->l_flags & mw->mw_mask) != mw->mw_goal) | 610 | if ((lockres->l_flags & mw->mw_mask) != mw->mw_goal) |
| 613 | continue; | 611 | continue; |
| 614 | 612 | ||
