patch-2.3.9 linux/fs/nfsd/vfs.c
Next file: linux/fs/ntfs/fs.c
Previous file: linux/fs/nfs/write.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Tue Jun 29 09:22:08 1999
- Orig file:
v2.3.8/linux/fs/nfsd/vfs.c
- Orig date:
Sat May 15 23:43:05 1999
diff -u --recursive --new-file v2.3.8/linux/fs/nfsd/vfs.c linux/fs/nfsd/vfs.c
@@ -342,7 +342,7 @@
memset(filp, 0, sizeof(*filp));
filp->f_op = inode->i_op->default_file_ops;
- filp->f_count = 1;
+ atomic_set(&filp->f_count, 1);
filp->f_flags = wflag? O_WRONLY : O_RDONLY;
filp->f_mode = wflag? FMODE_WRITE : FMODE_READ;
filp->f_dentry = dentry;
@@ -360,7 +360,7 @@
/* I nearly added put_filp() call here, but this filp
* is really on callers stack frame. -DaveM
*/
- filp->f_count--;
+ atomic_dec(&filp->f_count);
}
}
out_nfserr:
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)