patch-2.3.44 linux/fs/qnx4/namei.c
Next file: linux/fs/read_write.c
Previous file: linux/fs/qnx4/inode.c
Back to the patch index
Back to the overall index
- Lines: 10
- Date:
Fri Feb 11 16:10:03 2000
- Orig file:
v2.3.43/linux/fs/qnx4/namei.c
- Orig date:
Tue Jan 11 22:31:43 2000
diff -u --recursive --new-file v2.3.43/linux/fs/qnx4/namei.c linux/fs/qnx4/namei.c
@@ -120,7 +120,8 @@
/* The entry is linked, let's get the real info */
if ((de->di_status & QNX4_FILE_LINK) == QNX4_FILE_LINK) {
lnk = (struct qnx4_link_info *) de;
- ino = (lnk->dl_inode_blk - 1) * QNX4_INODES_PER_BLOCK +
+ ino = (le32_to_cpu(lnk->dl_inode_blk) - 1) *
+ QNX4_INODES_PER_BLOCK +
lnk->dl_inode_ndx;
}
brelse(bh);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)