patch-2.1.43 linux/fs/umsdos/emd.c
Next file: linux/fs/umsdos/file.c
Previous file: linux/fs/umsdos/dir.c
Back to the patch index
Back to the overall index
- Lines: 19
- Date:
Thu Jun 12 16:22:09 1997
- Orig file:
v2.1.42/linux/fs/umsdos/emd.c
- Orig date:
Thu Mar 27 14:40:06 1997
diff -u --recursive --new-file v2.1.42/linux/fs/umsdos/emd.c linux/fs/umsdos/emd.c
@@ -137,7 +137,8 @@
if (dir->u.umsdos_i.i_emd_dir != 0){
ret = iget (dir->i_sb,dir->u.umsdos_i.i_emd_dir);
PRINTK (("deja trouve %d %x [%d] "
- ,dir->u.umsdos_i.i_emd_dir,ret,ret->i_count));
+ ,dir->u.umsdos_i.i_emd_dir,ret,
+ atomic_read(&ret->i_count)));
}else{
umsdos_real_lookup (dir,UMSDOS_EMD_FILE,UMSDOS_EMD_NAMELEN,&ret);
PRINTK (("emd_dir_lookup "));
@@ -147,7 +148,7 @@
}else if (creat){
int code;
PRINTK (("avant create "));
- dir->i_count++;
+ atomic_inc(&dir->i_count);
code = msdos_create (dir,UMSDOS_EMD_FILE,UMSDOS_EMD_NAMELEN
,S_IFREG|0777,&ret);
PRINTK (("Creat EMD code %d ret %x ",code,ret));
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov