patch-2.2.15 linux/fs/umsdos/rdir.c
Next file: linux/include/asm-alpha/asm_offsets.h
Previous file: linux/fs/umsdos/namei.c
Back to the patch index
Back to the overall index
- Lines: 12
- Date:
Fri Apr 21 12:46:46 2000
- Orig file:
v2.2.14/fs/umsdos/rdir.c
- Orig date:
Sat Aug 14 02:25:59 1999
diff -u --new-file --recursive --exclude-from ../../exclude v2.2.14/fs/umsdos/rdir.c linux/fs/umsdos/rdir.c
@@ -110,7 +110,10 @@
*/
Printk ((KERN_DEBUG "umsdos_rlookup_x: patch_dentry_inode %s/%s\n",
dentry->d_parent->d_name.name, dentry->d_name.name));
- umsdos_patch_dentry_inode(dentry, 0);
+/* only patch if needed (because we get called even for lookup
+ (not only rlookup) stuff sometimes, like in umsdos_covered() */
+ if (dentry->d_inode->u.umsdos_i.i_patched == 0)
+ umsdos_patch_dentry_inode(dentry, 0);
}
out:
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)