* [Ocfs2-devel] [PATCH] ocfs2/trivial: Use le16_to_cpu for a disk value in xattr.c
@ 2009-12-23 6:31 Tao Ma
2009-12-23 18:48 ` Sunil Mushran
0 siblings, 1 reply; 2+ messages in thread
From: Tao Ma @ 2009-12-23 6:31 UTC (permalink / raw)
To: ocfs2-devel
In ocfs2_value_metas_in_xattr_header, we should Use
le16_to_cpu for ocfs2_extent_list.l_next_free_rec.
Signed-off-by: Tao Ma <tao.ma@oracle.com>
---
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 fe34190..8c0bfa2 100644
--- a/fs/ocfs2/xattr.c
+++ b/fs/ocfs2/xattr.c
@@ -6066,7 +6066,7 @@ static int ocfs2_value_metas_in_xattr_header(struct super_block *sb,
* to the extent block, so just calculate a maximum record num.
*/
if (!xv->xr_list.l_tree_depth)
- *num_recs += xv->xr_list.l_next_free_rec;
+ *num_recs += le16_to_cpu(xv->xr_list.l_next_free_rec);
else
*num_recs += ocfs2_clusters_for_bytes(sb,
XATTR_SIZE_MAX);
--
1.5.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Ocfs2-devel] [PATCH] ocfs2/trivial: Use le16_to_cpu for a disk value in xattr.c
2009-12-23 6:31 [Ocfs2-devel] [PATCH] ocfs2/trivial: Use le16_to_cpu for a disk value in xattr.c Tao Ma
@ 2009-12-23 18:48 ` Sunil Mushran
0 siblings, 0 replies; 2+ messages in thread
From: Sunil Mushran @ 2009-12-23 18:48 UTC (permalink / raw)
To: ocfs2-devel
Ack.
Tao Ma wrote:
> In ocfs2_value_metas_in_xattr_header, we should Use
> le16_to_cpu for ocfs2_extent_list.l_next_free_rec.
>
> Signed-off-by: Tao Ma <tao.ma@oracle.com>
> ---
> 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 fe34190..8c0bfa2 100644
> --- a/fs/ocfs2/xattr.c
> +++ b/fs/ocfs2/xattr.c
> @@ -6066,7 +6066,7 @@ static int ocfs2_value_metas_in_xattr_header(struct super_block *sb,
> * to the extent block, so just calculate a maximum record num.
> */
> if (!xv->xr_list.l_tree_depth)
> - *num_recs += xv->xr_list.l_next_free_rec;
> + *num_recs += le16_to_cpu(xv->xr_list.l_next_free_rec);
> else
> *num_recs += ocfs2_clusters_for_bytes(sb,
> XATTR_SIZE_MAX);
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-12-23 18:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-23 6:31 [Ocfs2-devel] [PATCH] ocfs2/trivial: Use le16_to_cpu for a disk value in xattr.c Tao Ma
2009-12-23 18:48 ` Sunil Mushran
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.