OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2359125
)
[GFS2] gfs2 endianness bug: be16 assigned to be32 field
author
Al Viro
<viro@ftp.linux.org.uk>
Sat, 14 Oct 2006 15:49:30 +0000
(16:49 +0100)
committer
Steven Whitehouse
<swhiteho@redhat.com>
Fri, 20 Oct 2006 13:14:08 +0000
(09:14 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/dir.c
patch
|
blob
|
history
diff --git
a/fs/gfs2/dir.c
b/fs/gfs2/dir.c
index
459498c
..
d43caf0
100644
(file)
--- a/
fs/gfs2/dir.c
+++ b/
fs/gfs2/dir.c
@@
-815,7
+815,7
@@
static struct gfs2_leaf *new_leaf(struct inode *inode, struct buffer_head **pbh,
leaf = (struct gfs2_leaf *)bh->b_data;
leaf->lf_depth = cpu_to_be16(depth);
leaf->lf_entries = 0;
- leaf->lf_dirent_format = cpu_to_be
16
(GFS2_FORMAT_DE);
+ leaf->lf_dirent_format = cpu_to_be
32
(GFS2_FORMAT_DE);
leaf->lf_next = 0;
memset(leaf->lf_reserved, 0, sizeof(leaf->lf_reserved));
dent = (struct gfs2_dirent *)(leaf+1);