diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-01-30 06:49:32 -0500 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-01-30 06:49:32 -0500 |
commit | 2442a098be6b38ee3abe8edda3224b48ff4d604a (patch) | |
tree | b5c3c28b4dff83b68e807c80f7271550bba83c4d | |
parent | 4ff14670ee2a8229381ff295eaae84aa51beff43 (diff) |
[GFS2] Bug fix relating to endian conversion in inode.c
A two line fix to get endian conversion correct.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
-rw-r--r-- | fs/gfs2/inode.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c index 9ed7c0541065..e4ba380b286a 100644 --- a/fs/gfs2/inode.c +++ b/fs/gfs2/inode.c | |||
@@ -1002,7 +1002,8 @@ static void init_dinode(struct gfs2_inode *dip, struct gfs2_glock *gl, | |||
1002 | gfs2_buffer_clear_tail(dibh, sizeof(struct gfs2_dinode)); | 1002 | gfs2_buffer_clear_tail(dibh, sizeof(struct gfs2_dinode)); |
1003 | di = (struct gfs2_dinode *)dibh->b_data; | 1003 | di = (struct gfs2_dinode *)dibh->b_data; |
1004 | 1004 | ||
1005 | di->di_num = *inum; | 1005 | di->di_num.no_formal_ino = cpu_to_be64(inum->no_formal_ino); |
1006 | di->di_num.no_addr = cpu_to_be64(inum->no_addr); | ||
1006 | di->di_mode = cpu_to_be32(mode); | 1007 | di->di_mode = cpu_to_be32(mode); |
1007 | di->di_uid = cpu_to_be32(uid); | 1008 | di->di_uid = cpu_to_be32(uid); |
1008 | di->di_gid = cpu_to_be32(gid); | 1009 | di->di_gid = cpu_to_be32(gid); |