We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2723234 commit 8db074bCopy full SHA for 8db074b
fs/xfs/xfs_buf_item_recover.c
@@ -1034,9 +1034,22 @@ void
1034
xlog_free_buf_cancel_table(
1035
struct xlog *log)
1036
{
1037
+ int i;
1038
+
1039
if (!log->l_buf_cancel_table)
1040
return;
1041
1042
+ for (i = 0; i < XLOG_BC_TABLE_SIZE; i++) {
1043
+ struct xfs_buf_cancel *bc;
1044
1045
+ while ((bc = list_first_entry_or_null(
1046
+ &log->l_buf_cancel_table[i],
1047
+ struct xfs_buf_cancel, bc_list))) {
1048
+ list_del(&bc->bc_list);
1049
+ kmem_free(bc);
1050
+ }
1051
1052
1053
kmem_free(log->l_buf_cancel_table);
1054
log->l_buf_cancel_table = NULL;
1055
}
0 commit comments