aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2011-11-21 09:43:11 -0500
committerBoaz Harrosh <bharrosh@panasas.com>2012-03-19 16:39:11 -0400
commitb6d1f2dd61de7e696c75fbf39fb99cf41a189084 (patch)
tree4e4304318f3b5a0a404ea2b0a7539c8f97689819 /fs
parent192cfd58774b4d17b2fe8bdc77d89c2ef4e0591d (diff)
exofs: fix endian conversion in exofs_sync_fs()
fscb->s_numfiles is an __le64 field so we need to use cpu_to_le64() to get a little endian 64 bit on big endian systems. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/exofs/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/exofs/super.c b/fs/exofs/super.c
index d22cd168c6ee..4710b5f686d9 100644
--- a/fs/exofs/super.c
+++ b/fs/exofs/super.c
@@ -389,7 +389,7 @@ static int exofs_sync_fs(struct super_block *sb, int wait)
389 ios->length = offsetof(struct exofs_fscb, s_dev_table_oid); 389 ios->length = offsetof(struct exofs_fscb, s_dev_table_oid);
390 memset(fscb, 0, ios->length); 390 memset(fscb, 0, ios->length);
391 fscb->s_nextid = cpu_to_le64(sbi->s_nextid); 391 fscb->s_nextid = cpu_to_le64(sbi->s_nextid);
392 fscb->s_numfiles = cpu_to_le32(sbi->s_numfiles); 392 fscb->s_numfiles = cpu_to_le64(sbi->s_numfiles);
393 fscb->s_magic = cpu_to_le16(sb->s_magic); 393 fscb->s_magic = cpu_to_le16(sb->s_magic);
394 fscb->s_newfs = 0; 394 fscb->s_newfs = 0;
395 fscb->s_version = EXOFS_FSCB_VER; 395 fscb->s_version = EXOFS_FSCB_VER;