aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jfs/jfs_xtree.c
diff options
context:
space:
mode:
authorDave Kleikamp <shaggy@austin.ibm.com>2005-05-04 10:11:49 -0400
committerDave Kleikamp <shaggy@austin.ibm.com>2005-05-04 10:11:49 -0400
commit6b6bf51081a27e80334e7ebe2993ae1d046a3222 (patch)
tree30c44cf22caf3bbe090f333460711f7719e848af /fs/jfs/jfs_xtree.c
parent8800cea62025a5209d110c5fa5990429239d6eee (diff)
JFS: Endian errors
Thanks sparse! Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>
Diffstat (limited to 'fs/jfs/jfs_xtree.c')
-rw-r--r--fs/jfs/jfs_xtree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/jfs/jfs_xtree.c b/fs/jfs/jfs_xtree.c
index 2c1f311914a..31b34db4519 100644
--- a/fs/jfs/jfs_xtree.c
+++ b/fs/jfs/jfs_xtree.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (C) International Business Machines Corp., 2000-2004 2 * Copyright (C) International Business Machines Corp., 2000-2005
3 * 3 *
4 * This program is free software; you can redistribute it and/or modify 4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by 5 * 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 /* search hit - internal page: 688 /* search hit - internal page:
689 * descend/search its child page 689 * descend/search its child page
690 */ 690 */
691 if (index < p->header.nextindex - 1) 691 if (index < le16_to_cpu(p->header.nextindex)-1)
692 next = offsetXAD(&p->xad[index + 1]); 692 next = offsetXAD(&p->xad[index + 1]);
693 goto next; 693 goto next;
694 } 694 }
@@ -705,7 +705,7 @@ static int xtSearch(struct inode *ip, s64 xoff, s64 *nextp,
705 * base is the smallest index with key (Kj) greater than 705 * base is the smallest index with key (Kj) greater than
706 * search key (K) and may be zero or maxentry index. 706 * search key (K) and may be zero or maxentry index.
707 */ 707 */
708 if (base < p->header.nextindex) 708 if (base < le16_to_cpu(p->header.nextindex))
709 next = offsetXAD(&p->xad[base]); 709 next = offsetXAD(&p->xad[base]);
710 /* 710 /*
711 * search miss - leaf page: 711 * search miss - leaf page: