Skip to content

Commit

Permalink
Merge pull request #141 from iaoing/issue_138
Browse files Browse the repository at this point in the history
Fix NEXT_PAGE issue when traversing snapshot list, #138
  • Loading branch information
Andiry authored Feb 21, 2022
2 parents a1977ab + 3916267 commit 976a4d1
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions fs/nova/snapshot.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,7 @@ static int nova_delete_snapshot_list_entries(struct super_block *sb,
while (curr_p != list->tail) {
if (goto_next_list_page(sb, curr_p)) {
curr_p = next_list_page(curr_p);
if (curr_p == list->tail)
break;
continue;
}

if (curr_p == 0) {
Expand Down Expand Up @@ -218,11 +217,8 @@ static int nova_background_clean_snapshot_list(struct super_block *sb,
curr_p != list->tail) {
if (goto_next_list_page(sb, curr_p)) {
curr_p = next_list_page(curr_p);
if (curr_p == list->tail)
break;
curr_page = (struct nova_inode_log_page *)curr_p;
if (curr_page->page_tail.epoch_id == epoch_id)
break;
continue;
}

if (curr_p == 0) {
Expand Down

0 comments on commit 976a4d1

Please sign in to comment.