diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-10-03 21:03:35 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-10-03 21:03:35 -0400 |
commit | 7ecdb70a0ea436c06540140242bfac6ac3babfc0 (patch) | |
tree | fbe0a13ef297111c7d46ee7db84654b537a2286a /fs/gfs2 | |
parent | fcb47e0bd279cab5ba8299c0a1e3364d15413a6b (diff) |
[GFS2] Fix endian bug for de_type
Missing endian conversion for the de_type field.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2')
-rw-r--r-- | fs/gfs2/ops_inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/gfs2/ops_inode.c b/fs/gfs2/ops_inode.c index 82432d8f7139..ef6e5ed70e94 100644 --- a/fs/gfs2/ops_inode.c +++ b/fs/gfs2/ops_inode.c | |||
@@ -404,7 +404,7 @@ static int gfs2_mkdir(struct inode *dir, struct dentry *dentry, int mode) | |||
404 | gfs2_trans_add_bh(ip->i_gl, dibh, 1); | 404 | gfs2_trans_add_bh(ip->i_gl, dibh, 1); |
405 | gfs2_qstr2dirent(&str, GFS2_DIRENT_SIZE(str.len), dent); | 405 | gfs2_qstr2dirent(&str, GFS2_DIRENT_SIZE(str.len), dent); |
406 | dent->de_inum = di->di_num; /* already GFS2 endian */ | 406 | dent->de_inum = di->di_num; /* already GFS2 endian */ |
407 | dent->de_type = DT_DIR; | 407 | dent->de_type = cpu_to_be16(DT_DIR); |
408 | di->di_entries = cpu_to_be32(1); | 408 | di->di_entries = cpu_to_be32(1); |
409 | 409 | ||
410 | gfs2_str2qstr(&str, ".."); | 410 | gfs2_str2qstr(&str, ".."); |
@@ -412,7 +412,7 @@ static int gfs2_mkdir(struct inode *dir, struct dentry *dentry, int mode) | |||
412 | gfs2_qstr2dirent(&str, dibh->b_size - GFS2_DIRENT_SIZE(1) - sizeof(struct gfs2_dinode), dent); | 412 | gfs2_qstr2dirent(&str, dibh->b_size - GFS2_DIRENT_SIZE(1) - sizeof(struct gfs2_dinode), dent); |
413 | 413 | ||
414 | gfs2_inum_out(&dip->i_num, &dent->de_inum); | 414 | gfs2_inum_out(&dip->i_num, &dent->de_inum); |
415 | dent->de_type = DT_DIR; | 415 | dent->de_type = cpu_to_be16(DT_DIR); |
416 | 416 | ||
417 | gfs2_dinode_out(&ip->i_di, di); | 417 | gfs2_dinode_out(&ip->i_di, di); |
418 | 418 | ||