diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ocfs2/buffer_head_io.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ocfs2/buffer_head_io.c b/fs/ocfs2/buffer_head_io.c index 21c808f752d8..b18c6d677f9d 100644 --- a/fs/ocfs2/buffer_head_io.c +++ b/fs/ocfs2/buffer_head_io.c | |||
@@ -407,6 +407,7 @@ int ocfs2_write_super_or_backup(struct ocfs2_super *osb, | |||
407 | struct buffer_head *bh) | 407 | struct buffer_head *bh) |
408 | { | 408 | { |
409 | int ret = 0; | 409 | int ret = 0; |
410 | struct ocfs2_dinode *di = (struct ocfs2_dinode *)bh->b_data; | ||
410 | 411 | ||
411 | mlog_entry_void(); | 412 | mlog_entry_void(); |
412 | 413 | ||
@@ -426,6 +427,7 @@ int ocfs2_write_super_or_backup(struct ocfs2_super *osb, | |||
426 | 427 | ||
427 | get_bh(bh); /* for end_buffer_write_sync() */ | 428 | get_bh(bh); /* for end_buffer_write_sync() */ |
428 | bh->b_end_io = end_buffer_write_sync; | 429 | bh->b_end_io = end_buffer_write_sync; |
430 | ocfs2_compute_meta_ecc(osb->sb, bh->b_data, &di->i_check); | ||
429 | submit_bh(WRITE, bh); | 431 | submit_bh(WRITE, bh); |
430 | 432 | ||
431 | wait_on_buffer(bh); | 433 | wait_on_buffer(bh); |