diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ocfs2/xattr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ocfs2/xattr.c b/fs/ocfs2/xattr.c index 923e950e5445..932c07731608 100644 --- a/fs/ocfs2/xattr.c +++ b/fs/ocfs2/xattr.c | |||
@@ -6062,7 +6062,7 @@ static int ocfs2_value_metas_in_xattr_header(struct super_block *sb, | |||
6062 | * to the extent block, so just calculate a maximum record num. | 6062 | * to the extent block, so just calculate a maximum record num. |
6063 | */ | 6063 | */ |
6064 | if (!xv->xr_list.l_tree_depth) | 6064 | if (!xv->xr_list.l_tree_depth) |
6065 | *num_recs += xv->xr_list.l_next_free_rec; | 6065 | *num_recs += le16_to_cpu(xv->xr_list.l_next_free_rec); |
6066 | else | 6066 | else |
6067 | *num_recs += ocfs2_clusters_for_bytes(sb, | 6067 | *num_recs += ocfs2_clusters_for_bytes(sb, |
6068 | XATTR_SIZE_MAX); | 6068 | XATTR_SIZE_MAX); |