Skip to content

Commit

Permalink
JFS: pageno needs to be long
Browse files Browse the repository at this point in the history
diRead and diWrite are representing the page number as an unsigned int.
This causes file system corruption on volumes larger than 16TB.

Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>
  • Loading branch information
Dave Kleikamp committed Oct 13, 2006
1 parent b4bd8c6 commit 8f6cff9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/jfs/jfs_imap.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ int diRead(struct inode *ip)
struct inomap *imap;
int block_offset;
int inodes_left;
uint pageno;
unsigned long pageno;
int rel_inode;

jfs_info("diRead: ino = %ld", ip->i_ino);
Expand Down Expand Up @@ -606,7 +606,7 @@ int diWrite(tid_t tid, struct inode *ip)
int block_offset;
int inodes_left;
struct metapage *mp;
uint pageno;
unsigned long pageno;
int rel_inode;
int dioffset;
struct inode *ipimap;
Expand Down

0 comments on commit 8f6cff9

Please sign in to comment.