Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
72094e43
Commit
72094e43
authored
Apr 13, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ocfs2: ->e_leaf_clusters endianness breakage
le16, not le32... Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
28748b32
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
fs/ocfs2/suballoc.c
fs/ocfs2/suballoc.c
+2
-2
No files found.
fs/ocfs2/suballoc.c
View file @
72094e43
...
@@ -600,7 +600,7 @@ static void ocfs2_bg_alloc_cleanup(handle_t *handle,
...
@@ -600,7 +600,7 @@ static void ocfs2_bg_alloc_cleanup(handle_t *handle,
ret
=
ocfs2_free_clusters
(
handle
,
cluster_ac
->
ac_inode
,
ret
=
ocfs2_free_clusters
(
handle
,
cluster_ac
->
ac_inode
,
cluster_ac
->
ac_bh
,
cluster_ac
->
ac_bh
,
le64_to_cpu
(
rec
->
e_blkno
),
le64_to_cpu
(
rec
->
e_blkno
),
le
32
_to_cpu
(
rec
->
e_leaf_clusters
));
le
16
_to_cpu
(
rec
->
e_leaf_clusters
));
if
(
ret
)
if
(
ret
)
mlog_errno
(
ret
);
mlog_errno
(
ret
);
/* Try all the clusters to free */
/* Try all the clusters to free */
...
@@ -1628,7 +1628,7 @@ static int ocfs2_bg_discontig_fix_by_rec(struct ocfs2_suballoc_result *res,
...
@@ -1628,7 +1628,7 @@ static int ocfs2_bg_discontig_fix_by_rec(struct ocfs2_suballoc_result *res,
{
{
unsigned
int
bpc
=
le16_to_cpu
(
cl
->
cl_bpc
);
unsigned
int
bpc
=
le16_to_cpu
(
cl
->
cl_bpc
);
unsigned
int
bitoff
=
le32_to_cpu
(
rec
->
e_cpos
)
*
bpc
;
unsigned
int
bitoff
=
le32_to_cpu
(
rec
->
e_cpos
)
*
bpc
;
unsigned
int
bitcount
=
le
32
_to_cpu
(
rec
->
e_leaf_clusters
)
*
bpc
;
unsigned
int
bitcount
=
le
16
_to_cpu
(
rec
->
e_leaf_clusters
)
*
bpc
;
if
(
res
->
sr_bit_offset
<
bitoff
)
if
(
res
->
sr_bit_offset
<
bitoff
)
return
0
;
return
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment