Skip to content

Commit b04a2c8

Browse files
authored
Merge pull request torvalds#109 from hayley-leblanc/issue_100
Fix crash consistency issue with alternate logs (torvalds#100)
2 parents 587e252 + d09bcfc commit b04a2c8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

fs/nova/log.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,6 @@ static int nova_initialize_inode_log(struct super_block *sb,
11841184
sih->log_pages++;
11851185
nova_flush_buffer(&pi->alter_log_head, CACHELINE_SIZE, 1);
11861186
}
1187-
nova_update_inode_checksum(pi);
11881187
nova_memlock_inode(sb, pi, &irq_flags);
11891188

11901189
return 0;
@@ -1221,6 +1220,10 @@ static u64 nova_extend_inode_log(struct super_block *sb, struct nova_inode *pi,
12211220
nova_memlock_inode(sb, pi, &irq_flags);
12221221
}
12231222

1223+
nova_memunlock_inode(sb, pi, &irq_flags);
1224+
nova_update_inode_checksum(pi);
1225+
nova_memlock_inode(sb, pi, &irq_flags);
1226+
12241227
return sih->log_head;
12251228
}
12261229

0 commit comments

Comments
 (0)