From: Al Viro Date: Fri, 13 Apr 2012 16:27:11 +0000 (-0400) Subject: ocfs: ->rl_used breakage on big-endian X-Git-Tag: v2.6.39-400.9.0~339^2~9 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=72be10ca0aa2eadb5b958f98486bd9c0b601f028;p=users%2Fjedix%2Flinux-maple.git ocfs: ->rl_used breakage on big-endian it's le16, not le32 or le64... Signed-off-by: Al Viro Signed-off-by: Xiaowei.Hu --- diff --git a/fs/ocfs2/refcounttree.c b/fs/ocfs2/refcounttree.c index 15d29ccefd4f..dff1d64f8f53 100644 --- a/fs/ocfs2/refcounttree.c +++ b/fs/ocfs2/refcounttree.c @@ -1468,7 +1468,7 @@ static int ocfs2_divide_leaf_refcount_block(struct buffer_head *ref_leaf_bh, trace_ocfs2_divide_leaf_refcount_block( (unsigned long long)ref_leaf_bh->b_blocknr, - le16_to_cpu(rl->rl_count), le16_to_cpu(rl->rl_used)); + le32_to_cpu(rl->rl_count), le16_to_cpu(rl->rl_used)); /* * XXX: Improvement later.