Skip to content

Commit 976a4d1

Browse files
authored
Merge pull request #141 from iaoing/issue_138
Fix NEXT_PAGE issue when traversing snapshot list, #138
2 parents a1977ab + 3916267 commit 976a4d1

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

fs/nova/snapshot.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,7 @@ static int nova_delete_snapshot_list_entries(struct super_block *sb,
132132
while (curr_p != list->tail) {
133133
if (goto_next_list_page(sb, curr_p)) {
134134
curr_p = next_list_page(curr_p);
135-
if (curr_p == list->tail)
136-
break;
135+
continue;
137136
}
138137

139138
if (curr_p == 0) {
@@ -218,11 +217,8 @@ static int nova_background_clean_snapshot_list(struct super_block *sb,
218217
curr_p != list->tail) {
219218
if (goto_next_list_page(sb, curr_p)) {
220219
curr_p = next_list_page(curr_p);
221-
if (curr_p == list->tail)
222-
break;
223220
curr_page = (struct nova_inode_log_page *)curr_p;
224-
if (curr_page->page_tail.epoch_id == epoch_id)
225-
break;
221+
continue;
226222
}
227223

228224
if (curr_p == 0) {

0 commit comments

Comments
 (0)