Re: [PATCH] ext4: fix big-endian bugs which could cause fs corruptions

2013-04-03 Thread Zheng Liu
On 04/04/2013 12:36 AM, Theodore Ts'o wrote: > From: Zheng Liu > > From: Zheng Liu > > When an extent was zeroed out, we forgot to do convert from cpu to le16. > It could make us hit a BUG_ON when we try to write dirty pages out. So > fix it. > > [ Also fix a bug found by Dmitry Monakhov

[PATCH] ext4: fix big-endian bugs which could cause fs corruptions

2013-04-03 Thread Theodore Ts'o
From: Zheng Liu From: Zheng Liu When an extent was zeroed out, we forgot to do convert from cpu to le16. It could make us hit a BUG_ON when we try to write dirty pages out. So fix it. [ Also fix a bug found by Dmitry Monakhov where we were missing le32_to_cpu() calls in the new indirect

[PATCH] ext4: fix big-endian bugs which could cause fs corruptions

2013-04-03 Thread Theodore Ts'o
From: Zheng Liu wenqing...@taobao.com From: Zheng Liu wenqing...@taobao.com When an extent was zeroed out, we forgot to do convert from cpu to le16. It could make us hit a BUG_ON when we try to write dirty pages out. So fix it. [ Also fix a bug found by Dmitry Monakhov where we were missing

Re: [PATCH] ext4: fix big-endian bugs which could cause fs corruptions

2013-04-03 Thread Zheng Liu
On 04/04/2013 12:36 AM, Theodore Ts'o wrote: From: Zheng Liu wenqing...@taobao.com From: Zheng Liu wenqing...@taobao.com When an extent was zeroed out, we forgot to do convert from cpu to le16. It could make us hit a BUG_ON when we try to write dirty pages out. So fix it. [ Also fix a