From: Greg KH on
2.6.32-stable review patch. If anyone has any objections, please let us know.


From: Joel Becker <joel.becker(a)>

commit a42ab8e1a37257da37e0f018e707bf365ac24531 upstream.

Online resize writes out the new superblock and its backups directly.
The metaecc data wasn't being recomputed. Let's do that directly.

Signed-off-by: Joel Becker <joel.becker(a)>
Acked-by: Mark Fasheh <mfasheh(a)>
Signed-off-by: Greg Kroah-Hartman <gregkh(a)>

fs/ocfs2/buffer_head_io.c | 2 ++
1 file changed, 2 insertions(+)

--- 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 o
struct buffer_head *bh)
int ret = 0;
+ struct ocfs2_dinode *di = (struct ocfs2_dinode *)bh->b_data;


@@ -426,6 +427,7 @@ int ocfs2_write_super_or_backup(struct o

get_bh(bh); /* for end_buffer_write_sync() */
bh->b_end_io = end_buffer_write_sync;
+ ocfs2_compute_meta_ecc(osb->sb, bh->b_data, &di->i_check);
submit_bh(WRITE, bh);


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)
More majordomo info at
Please read the FAQ at