patch-2.3.99-pre3 linux/fs/udf/namei.c
Next file: linux/fs/udf/super.c
Previous file: linux/fs/udf/misc.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Mon Mar 20 08:17:43 2000
- Orig file:
v2.3.99-pre2/linux/fs/udf/namei.c
- Orig date:
Fri Mar 10 16:40:48 2000
diff -u --recursive --new-file v2.3.99-pre2/linux/fs/udf/namei.c linux/fs/udf/namei.c
@@ -935,7 +935,7 @@
inode->i_data.a_ops = &udf_symlink_aops;
inode->i_op = &page_symlink_inode_operations;
- if (UDF_I_ALLOCTYPE(inode) == ICB_FLAG_AD_IN_ICB)
+ if (UDF_I_ALLOCTYPE(inode) != ICB_FLAG_AD_IN_ICB)
{
struct buffer_head *bh = NULL;
lb_addr bloc, eloc;
@@ -964,7 +964,7 @@
bh = udf_tread(inode->i_sb, block, inode->i_sb->s_blocksize);
ea = bh->b_data + udf_ext0_offset(inode);
- eoffset = inode->i_sb->s_blocksize - (ea - bh->b_data);
+ eoffset = inode->i_sb->s_blocksize - udf_ext0_offset(inode);
pc = (struct PathComponent *)ea;
if (*symname == '/')
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)