*/
done = 1;
ll_release_page(page, 0);
- } else if (1 /* chain is exhausted*/) {
+ } else {
/*
* Normal case: continue to the next
* page.
next = pos;
page = ll_get_dir_page(inode, pos,
&chain);
- } else {
- /*
- * go into overflow page.
- */
- LASSERT(le32_to_cpu(dp->ldp_flags) &
- LDF_COLLIDE);
- ll_release_page(page, 1);
}
}
rc = 0;
goto out;
- } else if (1) {
+ } else {
/*
* chain is exhausted.
* Normal case: continue to the next page.
ll_release_page(page, le32_to_cpu(dp->ldp_flags) &
LDF_COLLIDE);
page = ll_get_dir_page(dir, pos, &chain);
- } else {
- LASSERT(le32_to_cpu(dp->ldp_flags) & LDF_COLLIDE);
- ll_release_page(page, 1);
- /*
- * go into overflow page.
- */
}
}
* End of directory reached.
*/
ll_release_page(page, 0);
- break;
- } else if (1) {
+ goto out;
+ } else {
/*
* chain is exhausted
* Normal case: continue to the next page.
ll_release_page(page, le32_to_cpu(dp->ldp_flags) &
LDF_COLLIDE);
page = ll_get_dir_page(dir, pos, &chain);
- } else {
- /*
- * go into overflow page.
- */
- LASSERT(le32_to_cpu(dp->ldp_flags) & LDF_COLLIDE);
- ll_release_page(page, 1);
}
}