summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/alloc.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-04-13 18:22:00 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2012-04-13 18:31:37 +0200
commit3a251f04fe97c3d335b745c98e4b377e3c3899f2 (patch)
treeb5835ebf3639fe4e8bc9d71abbb36891080e777e /fs/ocfs2/alloc.c
parentbtrfs: btrfs_root_readonly() broken on big-endian (diff)
downloadlinux-3a251f04fe97c3d335b745c98e4b377e3c3899f2.tar.xz
linux-3a251f04fe97c3d335b745c98e4b377e3c3899f2.zip
ocfs2: ->l_next_free_req breakage on big-endian
It's le16, not le32... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ocfs2/alloc.c')
-rw-r--r--fs/ocfs2/alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ocfs2/alloc.c b/fs/ocfs2/alloc.c
index 3165aebb43c8..31b9463fba1f 100644
--- a/fs/ocfs2/alloc.c
+++ b/fs/ocfs2/alloc.c
@@ -1134,7 +1134,7 @@ static int ocfs2_adjust_rightmost_branch(handle_t *handle,
}
el = path_leaf_el(path);
- rec = &el->l_recs[le32_to_cpu(el->l_next_free_rec) - 1];
+ rec = &el->l_recs[le16_to_cpu(el->l_next_free_rec) - 1];
ocfs2_adjust_rightmost_records(handle, et, path, rec);