diff options
-rw-r--r-- | fs/ocfs2/filecheck.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/fs/ocfs2/filecheck.c b/fs/ocfs2/filecheck.c index e87279e49ba3..6b92cb241138 100644 --- a/fs/ocfs2/filecheck.c +++ b/fs/ocfs2/filecheck.c | |||
@@ -134,9 +134,10 @@ ocfs2_filecheck_sysfs_free(struct ocfs2_filecheck_sysfs_entry *entry) | |||
134 | { | 134 | { |
135 | struct ocfs2_filecheck_entry *p; | 135 | struct ocfs2_filecheck_entry *p; |
136 | 136 | ||
137 | if (!atomic_dec_and_test(&entry->fs_count)) | 137 | if (!atomic_dec_and_test(&entry->fs_count)) { |
138 | wait_on_atomic_t(&entry->fs_count, atomic_t_wait, | 138 | wait_var_event(&entry->fs_count, |
139 | TASK_UNINTERRUPTIBLE); | 139 | !atomic_read(&entry->fs_count)); |
140 | } | ||
140 | 141 | ||
141 | spin_lock(&entry->fs_fcheck->fc_lock); | 142 | spin_lock(&entry->fs_fcheck->fc_lock); |
142 | while (!list_empty(&entry->fs_fcheck->fc_head)) { | 143 | while (!list_empty(&entry->fs_fcheck->fc_head)) { |
@@ -183,7 +184,7 @@ static void | |||
183 | ocfs2_filecheck_sysfs_put(struct ocfs2_filecheck_sysfs_entry *entry) | 184 | ocfs2_filecheck_sysfs_put(struct ocfs2_filecheck_sysfs_entry *entry) |
184 | { | 185 | { |
185 | if (atomic_dec_and_test(&entry->fs_count)) | 186 | if (atomic_dec_and_test(&entry->fs_count)) |
186 | wake_up_atomic_t(&entry->fs_count); | 187 | wake_up_var(&entry->fs_count); |
187 | } | 188 | } |
188 | 189 | ||
189 | static struct ocfs2_filecheck_sysfs_entry * | 190 | static struct ocfs2_filecheck_sysfs_entry * |