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
Kirill Smelkov
linux
Commits
6b6bf510
Commit
6b6bf510
authored
May 04, 2005
by
Dave Kleikamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
JFS: Endian errors
Thanks sparse! Signed-off-by:
Dave Kleikamp
<
shaggy@austin.ibm.com
>
parent
8800cea6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
fs/jfs/jfs_xtree.c
fs/jfs/jfs_xtree.c
+3
-3
No files found.
fs/jfs/jfs_xtree.c
View file @
6b6bf510
/*
/*
* Copyright (C) International Business Machines Corp., 2000-200
4
* Copyright (C) International Business Machines Corp., 2000-200
5
*
*
* This program is free software; you can redistribute it and/or modify
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* it under the terms of the GNU General Public License as published by
...
@@ -688,7 +688,7 @@ static int xtSearch(struct inode *ip, s64 xoff, s64 *nextp,
...
@@ -688,7 +688,7 @@ static int xtSearch(struct inode *ip, s64 xoff, s64 *nextp,
/* search hit - internal page:
/* search hit - internal page:
* descend/search its child page
* descend/search its child page
*/
*/
if
(
index
<
p
->
header
.
nextindex
-
1
)
if
(
index
<
le16_to_cpu
(
p
->
header
.
nextindex
)
-
1
)
next
=
offsetXAD
(
&
p
->
xad
[
index
+
1
]);
next
=
offsetXAD
(
&
p
->
xad
[
index
+
1
]);
goto
next
;
goto
next
;
}
}
...
@@ -705,7 +705,7 @@ static int xtSearch(struct inode *ip, s64 xoff, s64 *nextp,
...
@@ -705,7 +705,7 @@ static int xtSearch(struct inode *ip, s64 xoff, s64 *nextp,
* base is the smallest index with key (Kj) greater than
* base is the smallest index with key (Kj) greater than
* search key (K) and may be zero or maxentry index.
* search key (K) and may be zero or maxentry index.
*/
*/
if
(
base
<
p
->
header
.
nextindex
)
if
(
base
<
le16_to_cpu
(
p
->
header
.
nextindex
)
)
next
=
offsetXAD
(
&
p
->
xad
[
base
]);
next
=
offsetXAD
(
&
p
->
xad
[
base
]);
/*
/*
* search miss - leaf page:
* search miss - leaf page:
...
...
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